summaryrefslogtreecommitdiffhomepage
path: root/src/class.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-09-19 22:34:18 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-09-19 22:34:18 +0900
commit16e8f8782e79e0073f54a0de29a22ca08331a75f (patch)
tree3674c69814ead5f76840ff8cbaa7063681679fdb /src/class.c
parent747059a718b9c6538891a21df69bad9998c51ad0 (diff)
downloadmruby-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.c2
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;