Add type cast to pacify warning

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-02-11 16:00:26 +09:00
parent b36495bcb5
commit 6cb7aef563
+1 -1
View File
@@ -1773,7 +1773,7 @@ mrb_str_reverse_bang(mrb_state *mrb, mrb_value str)
mrb_str_modify(mrb, mrb_str_ptr(str));
len = RSTRING_LEN(str);
buf = mrb_malloc(mrb, (size_t)len);
buf = (char*)mrb_malloc(mrb, (size_t)len);
p = buf;
e = buf + len;