diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-19 22:34:18 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-19 22:34:18 +0900 |
| commit | 16e8f8782e79e0073f54a0de29a22ca08331a75f (patch) | |
| tree | 3674c69814ead5f76840ff8cbaa7063681679fdb /src/class.c | |
| parent | 747059a718b9c6538891a21df69bad9998c51ad0 (diff) | |
| download | mruby-16e8f8782e79e0073f54a0de29a22ca08331a75f.tar.gz mruby-16e8f8782e79e0073f54a0de29a22ca08331a75f.zip | |
fixup! Remove implicit conversion using `to_str` method.
Diffstat (limited to 'src/class.c')
| -rw-r--r-- | src/class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class.c b/src/class.c index 6eccd7905..6187d5420 100644 --- a/src/class.c +++ b/src/class.c @@ -1979,7 +1979,7 @@ mrb_mod_const_get(mrb_state *mrb, mrb_value mod) } /* const get with class path string */ - path = mrb_string_type(mrb, path); + path = mrb_ensure_string_type(mrb, path); ptr = RSTRING_PTR(path); len = RSTRING_LEN(path); off = 0; |
