summaryrefslogtreecommitdiffhomepage
path: root/src/sprintf.c
diff options
context:
space:
mode:
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);