mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/ruby.h (FIX2ULONG): drop sign bit for LLP64 platform.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
302c311199
commit
2e4f2aaaf0
3 changed files with 8 additions and 4 deletions
|
@ -201,7 +201,7 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
|
|||
#endif
|
||||
|
||||
#define FIX2LONG(x) RSHIFT((SIGNED_VALUE)x,1)
|
||||
#define FIX2ULONG(x) (((VALUE)(x))>>1)
|
||||
#define FIX2ULONG(x) ((((VALUE)(x))>>1)&LONG_MAX)
|
||||
#define FIXNUM_P(f) (((SIGNED_VALUE)(f))&FIXNUM_FLAG)
|
||||
#define POSFIXABLE(f) ((f) <= FIXNUM_MAX)
|
||||
#define NEGFIXABLE(f) ((f) >= FIXNUM_MIN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue