aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-15 08:16:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-15 08:16:42 +0000
commiteb6575e137c750f7bdc5ff64ffbe0a5f12f56e7f (patch)
tree67501049774d5aedf141b8767ae2eb7bef875a1b /numeric.c
parentc1b4b10a120b2f0b206414161d4f208fb1c37e62 (diff)
downloadruby-eb6575e137c750f7bdc5ff64ffbe0a5f12f56e7f.tar.gz
numeric.c: preserve encoding
* numeric.c (num_init_copy): preserve encoding of error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44613 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 3ceb5ae2d2..ddc909ee28 100644
--- a/numeric.c
+++ b/numeric.c
@@ -332,7 +332,7 @@ num_sadded(VALUE x, VALUE name)
static VALUE
num_init_copy(VALUE x, VALUE y)
{
- rb_raise(rb_eTypeError, "can't copy %s", rb_obj_classname(x));
+ rb_raise(rb_eTypeError, "can't copy %"PRIsVALUE, rb_obj_class(x));
UNREACHABLE;
}