1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
knu 2002-10-26 15:51:59 +00:00
parent 2bda19cc0d
commit 20a8fa174c
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sat Oct 26 10:11:47 2002 Akinori MUSHA <knu@iDaemons.org>
* node.h (nd_type): cast the value to int.
Sat Oct 26 04:27:35 2002 Akinori MUSHA <knu@iDaemons.org> Sat Oct 26 04:27:35 2002 Akinori MUSHA <knu@iDaemons.org>
* ext/dbm/dbm.c (fdbm_indexes, fdbm_select): add a missing * ext/dbm/dbm.c (fdbm_indexes, fdbm_select): add a missing

2
node.h
View file

@ -154,7 +154,7 @@ typedef struct RNode {
#define RNODE(obj) (R_CAST(RNode)(obj)) #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) \ #define nd_set_type(n,t) \
RNODE(n)->flags=((RNODE(n)->flags&~FL_UMASK)|(((t)<<FL_USHIFT)&FL_UMASK)) RNODE(n)->flags=((RNODE(n)->flags&~FL_UMASK)|(((t)<<FL_USHIFT)&FL_UMASK))