summaryrefslogtreecommitdiff
path: root/node.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-17 09:59:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-17 09:59:48 +0000
commitcf125a912aa86918dbc043166c2a1b6858ae65cf (patch)
tree21a7c587886f97837d2c06f675f296dc59e2af4d /node.h
parentd25ea00ac0b3f7ea5a73c6fe821df5352831a151 (diff)
* node.h (nd_line): NODE_LMASK is not needed.
* node.h (NOEX_SAFE): made int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.h')
-rw-r--r--node.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/node.h b/node.h
index c6a0fbb..58edbd4 100644
--- a/node.h
+++ b/node.h
@@ -280,7 +280,7 @@ typedef struct RNode {
#define NODE_LSHIFT (NODE_TYPESHIFT+7)
#define NODE_LMASK (((SIGNED_VALUE)1<<(sizeof(VALUE)*CHAR_BIT-NODE_LSHIFT))-1)
-#define nd_line(n) ((VALUE)(((RNODE(n))->flags>>NODE_LSHIFT)&NODE_LMASK))
+#define nd_line(n) (RNODE(n)->flags>>NODE_LSHIFT)
#define nd_set_line(n,l) \
RNODE(n)->flags=((RNODE(n)->flags&~(-1<<NODE_LSHIFT))|(((l)&NODE_LMASK)<<NODE_LSHIFT))
@@ -473,7 +473,7 @@ typedef struct RNode {
#define NOEX_SUPER 0x20
#define NOEX_VCALL 0x40
-#define NOEX_SAFE(n) (((n) >> 8) & 0x0F)
+#define NOEX_SAFE(n) ((int)((n) >> 8) & 0x0F)
#define NOEX_WITH(n, s) ((s << 8) | (n) | (ruby_running ? 0 : NOEX_BASIC))
#define NOEX_WITH_SAFE(n) NOEX_WITH(n, rb_safe_level())