diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-24 09:24:45 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-24 09:28:00 +0900 |
| commit | f5a86ca5305d70c16297b67df30ce37c102af183 (patch) | |
| tree | ba97f8f79a5eca073ede8718d11ac49bef1f24f4 /src | |
| parent | 798c69d1be8d9ab437defb25e5e652d355eef5d4 (diff) | |
| download | mruby-f5a86ca5305d70c16297b67df30ce37c102af183.tar.gz mruby-f5a86ca5305d70c16297b67df30ce37c102af183.zip | |
Add pointer casting from mrb_malloc(); ref #3267
Diffstat (limited to 'src')
| -rw-r--r-- | src/variable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/variable.c b/src/variable.c index 29f43e69d..45dc055af 100644 --- a/src/variable.c +++ b/src/variable.c @@ -44,7 +44,7 @@ iv_new(mrb_state *mrb) { iv_tbl *t; - t = mrb_malloc(mrb, sizeof(iv_tbl)); + t = (iv_tbl*)mrb_malloc(mrb, sizeof(iv_tbl)); t->size = 0; t->rootseg = NULL; t->last_len = 0; @@ -102,7 +102,7 @@ iv_put(mrb_state *mrb, iv_tbl *t, mrb_sym sym, mrb_value val) return; } - seg = mrb_malloc(mrb, sizeof(segment)); + seg = (segment*)mrb_malloc(mrb, sizeof(segment)); if (!seg) return; seg->next = NULL; seg->key[0] = sym; |
