summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-27 23:43:46 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-27 23:43:46 +0000
commit85f554594a5d54050e7015894f9ab8b079c07780 (patch)
treef0c04d6cfe783e22a9b0ac576028a8e9e8aa3850 /numeric.c
parent1cdd1249e82ef4870fd60f5e46cbf639a36cf771 (diff)
* numeric.c: "%" is required before PRI?VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/numeric.c b/numeric.c
index 36bf6b6..6374982 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1574,14 +1574,14 @@ check_int(SIGNED_VALUE num)
else {
return;
}
- rb_raise(rb_eRangeError, "integer " PRIdVALUE " too %s to convert to `int'", num, s);
+ rb_raise(rb_eRangeError, "integer %"PRIdVALUE " too %s to convert to `int'", num, s);
}
static void
check_uint(VALUE num)
{
if (num > UINT_MAX) {
- rb_raise(rb_eRangeError, "integer " PRIuVALUE " too big to convert to `unsigned int'", num);
+ rb_raise(rb_eRangeError, "integer %"PRIuVALUE " too big to convert to `unsigned int'", num);
}
}
@@ -1651,7 +1651,7 @@ rb_num2fix(VALUE val)
v = rb_num2long(val);
if (!FIXABLE(v))
- rb_raise(rb_eRangeError, "integer " PRIdVALUE " out of range of fixnum", v);
+ rb_raise(rb_eRangeError, "integer %"PRIdVALUE " out of range of fixnum", v);
return LONG2FIX(v);
}
@@ -1879,7 +1879,7 @@ int_chr(int argc, VALUE *argv, VALUE num)
case 0:
if (i < 0 || 0xff < i) {
out_of_range:
- rb_raise(rb_eRangeError, PRIdVALUE " out of char range", i);
+ rb_raise(rb_eRangeError, "%"PRIdVALUE " out of char range", i);
}
c = i;
if (i < 0x80) {