From 20a8fa174c1b419fe37609784c9ed6afba3aaf35 Mon Sep 17 00:00:00 2001 From: knu Date: Sat, 26 Oct 2002 15:51:59 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ node.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2fe93db624..0417b6524c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Oct 26 10:11:47 2002 Akinori MUSHA + + * node.h (nd_type): cast the value to int. + Sat Oct 26 04:27:35 2002 Akinori MUSHA * ext/dbm/dbm.c (fdbm_indexes, fdbm_select): add a missing diff --git a/node.h b/node.h index dd43e21d4e..75c3615e96 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)<