Skip to content

Commit

Permalink
Add type cast to pacify warning
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Feb 11, 2017
1 parent b36495b commit 6cb7aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6cb7aef

Please sign in to comment.