We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be01058 commit cbf2ab2Copy full SHA for cbf2ab2
lib/cext/include/ruby/ruby.h
@@ -230,9 +230,9 @@ typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1];
230
#define FIXNUM_MAX RUBY_FIXNUM_MAX
231
#define FIXNUM_MIN RUBY_FIXNUM_MIN
232
233
-#define RB_INT2FIX(i) (VALUE)rb_tr_wrap((long)i)
+#define RB_INT2FIX(i) (VALUE)rb_tr_wrap((long)(i))
234
#define INT2FIX(i) RB_INT2FIX(i)
235
-#define RB_LONG2FIX(i) (VALUE)rb_tr_wrap((long)i)
+#define RB_LONG2FIX(i) (VALUE)rb_tr_wrap((long)(i))
236
#define LONG2FIX(i) RB_INT2FIX(i)
237
#define rb_fix_new(v) RB_INT2FIX(v)
238
VALUE rb_int2inum(intptr_t);
0 commit comments