diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-02-11 16:00:26 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-02-11 16:00:26 +0900 |
| commit | 6cb7aef56318a345fd7dd9afa3c25e33eb7dd03e (patch) | |
| tree | d4a1a5313b5a22a2f5cecf5d0570cf4de58a9438 /src/string.c | |
| parent | b36495bcb5a4f30144bc27c38167d02907ca8dc7 (diff) | |
| download | mruby-6cb7aef56318a345fd7dd9afa3c25e33eb7dd03e.tar.gz mruby-6cb7aef56318a345fd7dd9afa3c25e33eb7dd03e.zip | |
Add type cast to pacify warning
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c index 2e8ebda32..5e37abee1 100644 --- a/src/string.c +++ b/src/string.c @@ -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; |
