Permalink
Browse files

Add type cast to pacify warning

  • Loading branch information...
matz committed Feb 11, 2017
1 parent b36495b commit 6cb7aef56318a345fd7dd9afa3c25e33eb7dd03e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/string.c
View
@@ -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;

0 comments on commit 6cb7aef

Please sign in to comment.