ruby-changes:44254
From: kazu <ko1@a...>
Date: Mon, 3 Oct 2016 21:18:39 +0900 (JST)
Subject: [ruby-changes:44254] kazu:r56327 (trunk): Add prefix to FIX2LONG in include/ruby/ruby.h
kazu 2016-10-03 21:18:33 +0900 (Mon, 03 Oct 2016) New Revision: 56327 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56327 Log: Add prefix to FIX2LONG in include/ruby/ruby.h Modified files: trunk/include/ruby/ruby.h Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 56326) +++ include/ruby/ruby.h (revision 56327) @@ -1185,9 +1185,9 @@ void *rb_check_typeddata(VALUE, const rb https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1185 #define RSTRUCT_SET(st, idx, v) rb_struct_aset(st, INT2NUM(idx), (v)) #define RSTRUCT_GET(st, idx) rb_struct_aref(st, INT2NUM(idx)) -#define RBIGNUM_SIGN(b) (FIX2LONG(rb_big_cmp((b), RB_INT2FIX(0))) >= 0) -#define RBIGNUM_POSITIVE_P(b) (FIX2LONG(rb_big_cmp((b), RB_INT2FIX(0))) >= 0) -#define RBIGNUM_NEGATIVE_P(b) (FIX2LONG(rb_big_cmp((b), RB_INT2FIX(0))) < 0) +#define RBIGNUM_SIGN(b) (RB_FIX2LONG(rb_big_cmp((b), RB_INT2FIX(0))) >= 0) +#define RBIGNUM_POSITIVE_P(b) (RB_FIX2LONG(rb_big_cmp((b), RB_INT2FIX(0))) >= 0) +#define RBIGNUM_NEGATIVE_P(b) (RB_FIX2LONG(rb_big_cmp((b), RB_INT2FIX(0))) < 0) #define R_CAST(st) (struct st*) #define RBASIC(obj) (R_CAST(RBasic)(obj)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/