mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add pointer casting from mrb_malloc(); ref #3267
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user