Add type cast to pacify warning

parent b36495bc
...@@ -1773,7 +1773,7 @@ mrb_str_reverse_bang(mrb_state *mrb, mrb_value str) ...@@ -1773,7 +1773,7 @@ mrb_str_reverse_bang(mrb_state *mrb, mrb_value str)
mrb_str_modify(mrb, mrb_str_ptr(str)); mrb_str_modify(mrb, mrb_str_ptr(str));
len = RSTRING_LEN(str); len = RSTRING_LEN(str);
buf = mrb_malloc(mrb, (size_t)len); buf = (char*)mrb_malloc(mrb, (size_t)len);
p = buf; p = buf;
e = buf + len; e = buf + len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment