summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-sprintf
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-08-31 10:47:13 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-09-01 07:00:55 +0900
commit2c41739b66e34ee20f614e4793dfb1dba4fd7274 (patch)
treeef779e10b1960fcfb7ea2b9f0d621b938a7cdd21 /mrbgems/mruby-sprintf
parent082882da6977c29eaa614a96c376bd2225d55a04 (diff)
downloadmruby-2c41739b66e34ee20f614e4793dfb1dba4fd7274.tar.gz
mruby-2c41739b66e34ee20f614e4793dfb1dba4fd7274.zip
mruby.h: obsolete `mrb_to_str()`.
Replace them by `mrb_ensure_string_type()`.
Diffstat (limited to 'mrbgems/mruby-sprintf')
-rw-r--r--mrbgems/mruby-sprintf/src/sprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-sprintf/src/sprintf.c b/mrbgems/mruby-sprintf/src/sprintf.c
index ba5ba4cda..93ddf2ad5 100644
--- a/mrbgems/mruby-sprintf/src/sprintf.c
+++ b/mrbgems/mruby-sprintf/src/sprintf.c
@@ -586,7 +586,7 @@ mrb_str_format(mrb_state *mrb, mrb_int argc, const mrb_value *argv, mrb_value fm
++argc;
--argv;
- mrb_to_str(mrb, fmt);
+ mrb_ensure_string_type(mrb, fmt);
p = RSTRING_PTR(fmt);
end = p + RSTRING_LEN(fmt);
blen = 0;