summaryrefslogtreecommitdiffhomepage
path: root/src/object.c
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2013-03-28 17:40:13 +0900
committerMasaki Muranaka <[email protected]>2013-03-28 17:40:13 +0900
commit485111db6ba4355dd961c4949b66318f41b75355 (patch)
tree4f1aefbab79b381fe18440bc29ddcdbe004ccbfb /src/object.c
parentc0b5220418879200ed23e34e87485ad591cd9755 (diff)
downloadmruby-485111db6ba4355dd961c4949b66318f41b75355.tar.gz
mruby-485111db6ba4355dd961c4949b66318f41b75355.zip
Fix %s to %S.
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c
index c3a398db8..a77903e19 100644
--- a/src/object.c
+++ b/src/object.c
@@ -503,7 +503,7 @@ mrb_to_integer(mrb_state *mrb, mrb_value val, const char *method)
if (mrb_fixnum_p(val)) return val;
v = convert_type(mrb, val, "Integer", method, TRUE);
if (!mrb_obj_is_kind_of(mrb, v, mrb->fixnum_class)) {
- mrb_raisef(mrb, E_TYPE_ERROR, "can't convert %s to Integer (%S#%S gives %S)",
+ mrb_raisef(mrb, E_TYPE_ERROR, "can't convert %S to Integer (%S#%S gives %S)",
val, val, mrb_str_new_cstr(mrb, method), v);
}
return v;