Skip to content

Commit

Permalink
Fix build on c++ compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
xxuejie committed Nov 8, 2012
1 parent 1c95f4e commit 4bbf7a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gc.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/state.c
Expand Up @@ -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;
Expand Down

0 comments on commit 4bbf7a3

Please sign in to comment.