Project

General

Profile

Bug #15551 ยป fix2int-consistent.patch

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

View differences:

include/ruby/ruby.h
711 711
#else /* SIZEOF_INT < SIZEOF_LONG */
712 712
#define RB_NUM2INT(x) ((int)RB_NUM2LONG(x))
713 713
#define RB_NUM2UINT(x) ((unsigned int)RB_NUM2ULONG(x))
714
#define RB_FIX2INT(x) ((int)RB_FIX2LONG(x))
715
#define RB_FIX2UINT(x) ((unsigned int)RB_FIX2ULONG(x))
714
#define RB_FIX2INT(x) ((int)rb_num2long(x))
715
#define RB_FIX2UINT(x) ((unsigned int)rb_num2ulong(x))
716 716
#endif /* SIZEOF_INT < SIZEOF_LONG */
717 717
#define NUM2INT(x)  RB_NUM2INT(x)
718 718
#define NUM2UINT(x) RB_NUM2UINT(x)
719
-