Skip to content

Commit cbf2ab2

Browse files
committed
Alter macros to be bracket expressions.
1 parent be01058 commit cbf2ab2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/cext/include/ruby/ruby.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1];
230230
#define FIXNUM_MAX RUBY_FIXNUM_MAX
231231
#define FIXNUM_MIN RUBY_FIXNUM_MIN
232232

233-
#define RB_INT2FIX(i) (VALUE)rb_tr_wrap((long)i)
233+
#define RB_INT2FIX(i) (VALUE)rb_tr_wrap((long)(i))
234234
#define INT2FIX(i) RB_INT2FIX(i)
235-
#define RB_LONG2FIX(i) (VALUE)rb_tr_wrap((long)i)
235+
#define RB_LONG2FIX(i) (VALUE)rb_tr_wrap((long)(i))
236236
#define LONG2FIX(i) RB_INT2FIX(i)
237237
#define rb_fix_new(v) RB_INT2FIX(v)
238238
VALUE rb_int2inum(intptr_t);

0 commit comments

Comments
 (0)