diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-11-19 12:01:58 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-11-19 12:08:28 +0900 |
| commit | 9516731329a9d43b4aab57a19fb9cfc1b62f11e8 (patch) | |
| tree | 38ca7a71cc958792b2fd9df30ca62dfa577ae386 /mrbgems/mruby-sprintf | |
| parent | c022e4643f2b6c84cb3f1ca716c0e7da3f14c8ca (diff) | |
| download | mruby-9516731329a9d43b4aab57a19fb9cfc1b62f11e8.tar.gz mruby-9516731329a9d43b4aab57a19fb9cfc1b62f11e8.zip | |
Use type checking `mrb_to_str` instead of converting `mrb_str_to_str`.
Diffstat (limited to 'mrbgems/mruby-sprintf')
| -rw-r--r-- | mrbgems/mruby-sprintf/src/sprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-sprintf/src/sprintf.c b/mrbgems/mruby-sprintf/src/sprintf.c index 5a4a7899e..985ffe276 100644 --- a/mrbgems/mruby-sprintf/src/sprintf.c +++ b/mrbgems/mruby-sprintf/src/sprintf.c @@ -552,7 +552,7 @@ mrb_str_format(mrb_state *mrb, mrb_int argc, const mrb_value *argv, mrb_value fm ++argc; --argv; - fmt = mrb_str_to_str(mrb, fmt); + mrb_to_str(mrb, fmt); p = RSTRING_PTR(fmt); end = p + RSTRING_LEN(fmt); blen = 0; |
