summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-sprintf
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-09-05 10:54:06 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 18:20:19 +0900
commita4c5824e59c66a1132f38e1faf21926ddef58ca6 (patch)
tree11d160beb57f060eea6a042d405bbb8cac189002 /mrbgems/mruby-sprintf
parentafcf19b727aeca5932689b28777863815fe145cf (diff)
downloadmruby-a4c5824e59c66a1132f38e1faf21926ddef58ca6.tar.gz
mruby-a4c5824e59c66a1132f38e1faf21926ddef58ca6.zip
Restore old function names for compatibility; ref #5070
- `mrb_check_intern()` to return `mrb_value` - `mrb_intern_check()` to return `mrb_sym` [NEW] Other new functions: - `mrb_intern_check_cstr()` - `mrb_intern_check_str()`
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 189b54b5c..6396096b1 100644
--- a/mrbgems/mruby-sprintf/src/sprintf.c
+++ b/mrbgems/mruby-sprintf/src/sprintf.c
@@ -699,7 +699,7 @@ retry:
}
CHECKNAMEARG(start, p - start + 1);
get_hash(mrb, &hash, argc, argv);
- id = mrb_check_intern(mrb, start + 1, p - start - 1);
+ id = mrb_intern_check(mrb, start + 1, p - start - 1);
if (id) {
nextvalue = mrb_hash_fetch(mrb, hash, mrb_symbol_value(id), mrb_undef_value());
}