Project

General

Profile

Bug #15551 ยป fix2int-consistent.patch

jeremyevans0 (Jeremy Evans), 07/30/2019 08:49 PM

View differences:

include/ruby/ruby.h
#else /* SIZEOF_INT < SIZEOF_LONG */
#define RB_NUM2INT(x) ((int)RB_NUM2LONG(x))
#define RB_NUM2UINT(x) ((unsigned int)RB_NUM2ULONG(x))
#define RB_FIX2INT(x) ((int)RB_FIX2LONG(x))
#define RB_FIX2UINT(x) ((unsigned int)RB_FIX2ULONG(x))
#define RB_FIX2INT(x) ((int)rb_num2long(x))
#define RB_FIX2UINT(x) ((unsigned int)rb_num2ulong(x))
#endif /* SIZEOF_INT < SIZEOF_LONG */
#define NUM2INT(x) RB_NUM2INT(x)
#define NUM2UINT(x) RB_NUM2UINT(x)
    (1-1/1)