Skip to content

Commit

Permalink
* node.h (nd_type): cast the value to int.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
knu committed Oct 26, 2002
1 parent 2bda19c commit 20a8fa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Sat Oct 26 10:11:47 2002 Akinori MUSHA <[email protected]>

* node.h (nd_type): cast the value to int.

Sat Oct 26 04:27:35 2002 Akinori MUSHA <[email protected]>

* ext/dbm/dbm.c (fdbm_indexes, fdbm_select): add a missing
Expand Down
2 changes: 1 addition & 1 deletion node.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 20a8fa1

Please sign in to comment.