summaryrefslogtreecommitdiff
path: root/node.h
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-26 15:51:59 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-26 15:51:59 +0000
commit20a8fa174c1b419fe37609784c9ed6afba3aaf35 (patch)
tree89db3d864629eab63b35d1557d4254dedb74a1ef /node.h
parent2bda19cc0de01449c58792f9e3e70339171d3cac (diff)
* node.h (nd_type): cast the value to int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3002 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 dd43e21..75c3615 100644
--- a/node.h
+++ b/node.h
@@ -154,7 +154,7 @@ typedef struct RNode {
#define RNODE(obj) (R_CAST(RNode)(obj))
-#define nd_type(n) (((RNODE(n))->flags>>FL_USHIFT)&0xff)
+#define nd_type(n) ((int)(((RNODE(n))->flags>>FL_USHIFT)&0xff))
#define nd_set_type(n,t) \
RNODE(n)->flags=((RNODE(n)->flags&~FL_UMASK)|(((t)<<FL_USHIFT)&FL_UMASK))