diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-08-31 10:47:13 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-01 07:00:55 +0900 |
| commit | 2c41739b66e34ee20f614e4793dfb1dba4fd7274 (patch) | |
| tree | ef779e10b1960fcfb7ea2b9f0d621b938a7cdd21 /mrbgems/mruby-struct | |
| parent | 082882da6977c29eaa614a96c376bd2225d55a04 (diff) | |
| download | mruby-2c41739b66e34ee20f614e4793dfb1dba4fd7274.tar.gz mruby-2c41739b66e34ee20f614e4793dfb1dba4fd7274.zip | |
mruby.h: obsolete `mrb_to_str()`.
Replace them by `mrb_ensure_string_type()`.
Diffstat (limited to 'mrbgems/mruby-struct')
| -rw-r--r-- | mrbgems/mruby-struct/src/struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-struct/src/struct.c b/mrbgems/mruby-struct/src/struct.c index df76d7a33..e8f06b802 100644 --- a/mrbgems/mruby-struct/src/struct.c +++ b/mrbgems/mruby-struct/src/struct.c @@ -202,7 +202,7 @@ make_struct(mrb_state *mrb, mrb_value name, mrb_value members, struct RClass *kl } else { /* old style: should we warn? */ - mrb_to_str(mrb, name); + mrb_ensure_string_type(mrb, name); id = mrb_obj_to_sym(mrb, name); if (!mrb_const_name_p(mrb, RSTRING_PTR(name), RSTRING_LEN(name))) { mrb_name_error(mrb, id, "identifier %v needs to be constant", name); |
