diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2012-11-04 05:05:53 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2012-11-04 05:05:53 +0900 |
| commit | 15304c194d86544cc7cc7138cec1bf4bdcbcaeb5 (patch) | |
| tree | 5e707bc94923967786db3b872645303c9ccbfb53 /src/sprintf.c | |
| parent | d2d2e9f5f9267c2583aa542b4066d109a07b742e (diff) | |
| download | mruby-15304c194d86544cc7cc7138cec1bf4bdcbcaeb5.tar.gz mruby-15304c194d86544cc7cc7138cec1bf4bdcbcaeb5.zip | |
replace RTEST() by mrb_test_p()
Diffstat (limited to 'src/sprintf.c')
| -rw-r--r-- | src/sprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sprintf.c b/src/sprintf.c index 91fa3edca..cbe2681a9 100644 --- a/src/sprintf.c +++ b/src/sprintf.c @@ -1052,8 +1052,8 @@ retry: */ if (posarg >= 0 && nextarg < argc) { const char *mesg = "too many arguments for format string"; - if (RTEST(ruby_debug)) mrb_raise(mrb, E_ARGUMENT_ERROR, mesg); - if (RTEST(ruby_verbose)) mrb_warn("%s", mesg); + if (mrb_test(ruby_debug)) mrb_raise(mrb, E_ARGUMENT_ERROR, mesg); + if (mrb_test(ruby_verbose)) mrb_warn("%s", mesg); } mrb_str_resize(mrb, result, blen); |
