File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -225,8 +225,8 @@ typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1];
225
225
# endif
226
226
#endif
227
227
228
- #define RUBY_FIXNUM_MAX ( LONG_MAX>>1)
229
- #define RUBY_FIXNUM_MIN RSHIFT((long) LONG_MIN,1)
228
+ #define RUBY_FIXNUM_MAX LONG_MAX
229
+ #define RUBY_FIXNUM_MIN LONG_MIN
230
230
#define FIXNUM_MAX RUBY_FIXNUM_MAX
231
231
#define FIXNUM_MIN RUBY_FIXNUM_MIN
232
232
@@ -346,7 +346,7 @@ rb_fix2ulong(VALUE x)
346
346
return RB_FIX2ULONG (x );
347
347
}
348
348
int RB_FIXNUM_P (VALUE value );
349
- #define RB_POSFIXABLE (f ) ((f) < RUBY_FIXNUM_MAX+1 )
349
+ #define RB_POSFIXABLE (f ) ((f) <= RUBY_FIXNUM_MAX)
350
350
#define RB_NEGFIXABLE (f ) ((f) >= RUBY_FIXNUM_MIN)
351
351
#define RB_FIXABLE (f ) (RB_POSFIXABLE(f) && RB_NEGFIXABLE(f))
352
352
#define FIX2LONG (x ) RB_FIX2LONG(x)
You can’t perform that action at this time.
0 commit comments