summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-13 03:47:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-13 03:47:55 +0000
commit6b8b66b40197a891b6e12ee8bd3f105f47be40be (patch)
tree194f5522c796e90451adf792f3ba4b32f853da77 /range.c
parent225e3b011fca20bf679b10ab310a1435fc270c4e (diff)
range.c: class name encoding
* range.c (range_bsearch): preserve encoding of class name in an exception message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/range.c b/range.c
index ae16ae4..9211765 100644
--- a/range.c
+++ b/range.c
@@ -608,9 +608,9 @@ range_bsearch(VALUE range)
smaller = cmp < 0; \
} \
else { \
- rb_raise(rb_eTypeError, "wrong argument type %s" \
- " (must be numeric, true, false or nil)", \
- rb_obj_classname(v)); \
+ rb_raise(rb_eTypeError, "wrong argument type %"PRIsVALUE \
+ " (must be numeric, true, false or nil)", \
+ rb_obj_class(v)); \
} \
} while (0)