aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-02 03:32:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-02 03:32:07 +0000
commitd36bd9515bc89987efd9d70b110dea6129280ec0 (patch)
tree380b56129ac3dba6d0d37b5a21a13cda1ab67193 /numeric.c
parentb937767272c9483b35158c9ccf1eb698a9cf68ac (diff)
downloadruby-d36bd9515bc89987efd9d70b110dea6129280ec0.tar.gz
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
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 70982185b3..9ce86e1a59 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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 */