Commit caeec3a3 authored by Yukihiro Matz Matsumoto's avatar Yukihiro Matz Matsumoto

Merge branch 'master' of github.com:mruby/mruby

parents 0ab7ff81 8038ba8e
...@@ -325,7 +325,7 @@ struct RBasic* ...@@ -325,7 +325,7 @@ struct RBasic*
mrb_obj_alloc(mrb_state *mrb, enum mrb_vtype ttype, struct RClass *cls) mrb_obj_alloc(mrb_state *mrb, enum mrb_vtype ttype, struct RClass *cls)
{ {
struct RBasic *p; struct RBasic *p;
static const RVALUE RVALUE_zero = { { { 0 } } }; static const RVALUE RVALUE_zero = { { { MRB_TT_FALSE } } };
#ifdef MRB_GC_STRESS #ifdef MRB_GC_STRESS
mrb_garbage_collect(mrb); mrb_garbage_collect(mrb);
......
...@@ -53,7 +53,7 @@ mrb_alloca(mrb_state *mrb, size_t size) ...@@ -53,7 +53,7 @@ mrb_alloca(mrb_state *mrb, size_t size)
{ {
struct alloca_header *p; struct alloca_header *p;
p = mrb_malloc(mrb, sizeof(struct alloca_header)+size); p = (struct alloca_header*) mrb_malloc(mrb, sizeof(struct alloca_header)+size);
p->next = mrb->mems; p->next = mrb->mems;
mrb->mems = p; mrb->mems = p;
return (void*)p->buf; return (void*)p->buf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment