mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix build on c++ compiler
This commit is contained in:
@@ -325,7 +325,7 @@ struct RBasic*
|
||||
mrb_obj_alloc(mrb_state *mrb, enum mrb_vtype ttype, struct RClass *cls)
|
||||
{
|
||||
struct RBasic *p;
|
||||
static const RVALUE RVALUE_zero = { { { 0 } } };
|
||||
static const RVALUE RVALUE_zero = { { { MRB_TT_FALSE } } };
|
||||
|
||||
#ifdef MRB_GC_STRESS
|
||||
mrb_garbage_collect(mrb);
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ mrb_alloca(mrb_state *mrb, size_t size)
|
||||
{
|
||||
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;
|
||||
mrb->mems = p;
|
||||
return (void*)p->buf;
|
||||
|
||||
Reference in New Issue
Block a user