numeric.c: adjust type

* numeric.c (rb_fix2str): cast to a pointer to adjust argument
  type for the format.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-10-02 03:32:07 +00:00
parent 432a075035
commit 91430022d6

View File

@ -3271,7 +3271,7 @@ rb_fix2str(VALUE x, int base)
# if SIZEOF_VOIDP == SIZEOF_LONG_LONG
if ((val >= 0 && (x & 0xFFFFFFFF00000000ull)) ||
(val < 0 && (x & 0xFFFFFFFF00000000ull) != 0xFFFFFFFF00000000ull)) {
rb_bug("Unnormalized Fixnum value %p", x);
rb_bug("Unnormalized Fixnum value %p", (void *)x);
}
# elif
/* should do something like above code, but currently ruby does not know */