summaryrefslogtreecommitdiffhomepage
path: root/src/array.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-05-20 10:07:41 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-05-20 10:07:41 -0700
commitebfebfc3658660ebdb4a32991d1eab736bfee504 (patch)
tree08448056bc440124baab552e716c383f5e3f5ef7 /src/array.c
parentec8f97d2a6facab56ff78cc62ebf1928d06bed4a (diff)
parent9e336b00e5934dbe583edfd1db6370fa4e78745d (diff)
downloadmruby-ebfebfc3658660ebdb4a32991d1eab736bfee504.tar.gz
mruby-ebfebfc3658660ebdb4a32991d1eab736bfee504.zip
Merge pull request #171 from mitchblank/cplusplus
More C++ compilability work: mrb_obj_alloc void* conversions
Diffstat (limited to 'src/array.c')
-rw-r--r--src/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/array.c b/src/array.c
index b8916b341..faf7ca1fb 100644
--- a/src/array.c
+++ b/src/array.c
@@ -49,7 +49,7 @@ mrb_ary_new_capa(mrb_state *mrb, size_t capa)
mrb_raise(mrb, E_ARGUMENT_ERROR, "ary size too big");
}
- a = mrb_obj_alloc(mrb, MRB_TT_ARRAY, mrb->array_class);
+ a = (struct RArray *) mrb_obj_alloc(mrb, MRB_TT_ARRAY, mrb->array_class);
a->buf = mrb_malloc(mrb, blen);
memset(a->buf, 0, blen);
a->capa = capa;