summaryrefslogtreecommitdiff
path: root/node.h
diff options
context:
space:
mode:
authormichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-27 08:27:11 +0000
committermichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-27 08:27:11 +0000
commitcd3d4a01f248fad1a73ff0b66b7a8d1653f64c19 (patch)
tree0f88197960d8551e14b75ea632f4a0a7c484c0c5 /node.h
parenta36a445f2c08c640c6ea2e25e44f0649b0db84f2 (diff)
node.h: unsigned int cast (ruby-core:358)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.h')
-rw-r--r--node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.h b/node.h
index 8d3e347..1cb76bd 100644
--- a/node.h
+++ b/node.h
@@ -159,7 +159,7 @@ typedef struct RNode {
#define NODE_LSHIFT (FL_USHIFT+8)
#define NODE_LMASK (((long)1<<(sizeof(NODE*)*CHAR_BIT-NODE_LSHIFT))-1)
-#define nd_line(n) (((RNODE(n))->flags>>NODE_LSHIFT)&NODE_LMASK)
+#define nd_line(n) ((unsigned int)(((RNODE(n))->flags>>NODE_LSHIFT)&NODE_LMASK))
#define nd_set_line(n,l) \
RNODE(n)->flags=((RNODE(n)->flags&~(-1<<NODE_LSHIFT))|(((l)&NODE_LMASK)<<NODE_LSHIFT))