diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-01-15 08:16:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-01-15 08:16:42 +0000 |
commit | eb6575e137c750f7bdc5ff64ffbe0a5f12f56e7f (patch) | |
tree | 67501049774d5aedf141b8767ae2eb7bef875a1b /numeric.c | |
parent | c1b4b10a120b2f0b206414161d4f208fb1c37e62 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |