mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
a36a445f2c
commit
cd3d4a01f2
1 changed files with 1 additions and 1 deletions
2
node.h
2
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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue