diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-24 16:15:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-24 16:15:42 +0000 |
commit | 80aaa3ef6c87a4cbb13c92097ee5170a663d4175 (patch) | |
tree | 76af43a7bb8a549f6e27eec6281b60efc59f9ffb /error.c | |
parent | 8996556b058b64226e15284d55f87640586b4315 (diff) | |
download | ruby-80aaa3ef6c87a4cbb13c92097ee5170a663d4175.tar.gz |
sprintf.c: inspect by plus
* sprintf.c (ruby__sfvextra): [EXPERIMENTAL] use inspect instead of
to_s if plus flag is given.
* vsnprintf.c (BSD_vfprintf): pass sign flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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) { - VALUE s = rb_str_inspect(rb_str_new2(str)); + VALUE s = rb_str_new2(str); - rb_raise(rb_eArgError, "invalid value for %s: %"PRIsVALUE, type, s); + rb_raise(rb_eArgError, "invalid value for %s: %+"PRIsVALUE, type, s); } /* |