Fix build on c++ compiler

This commit is contained in:
Xuejie Xiao
2012-11-08 11:32:45 -05:00
parent 1c95f4eb82
commit 4bbf7a3e12
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;