summaryrefslogtreecommitdiffhomepage
path: root/src/sprintf.c
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2012-11-04 05:05:53 +0900
committerYukihiro Matz Matsumoto <[email protected]>2012-11-04 05:05:53 +0900
commit15304c194d86544cc7cc7138cec1bf4bdcbcaeb5 (patch)
tree5e707bc94923967786db3b872645303c9ccbfb53 /src/sprintf.c
parentd2d2e9f5f9267c2583aa542b4066d109a07b742e (diff)
downloadmruby-15304c194d86544cc7cc7138cec1bf4bdcbcaeb5.tar.gz
mruby-15304c194d86544cc7cc7138cec1bf4bdcbcaeb5.zip
replace RTEST() by mrb_test_p()
Diffstat (limited to 'src/sprintf.c')
-rw-r--r--src/sprintf.c4
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);