diff options
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1116,9 +1116,9 @@ nometh_err_args(VALUE self) void rb_invalid_str(const char *str, const char *type) { - volatile VALUE s = rb_str_inspect(rb_str_new2(str)); + VALUE s = rb_str_inspect(rb_str_new2(str)); - rb_raise(rb_eArgError, "invalid value for %s: %s", type, RSTRING_PTR(s)); + rb_raise(rb_eArgError, "invalid value for %s: %"PRIsVALUE, type, s); } /* |