From 4bbf7a3e12af8a8c4d7a34c19b3147bd0ade4eed Mon Sep 17 00:00:00 2001 From: Xuejie Xiao Date: Thu, 8 Nov 2012 11:32:45 -0500 Subject: Fix build on c++ compiler --- src/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/state.c') diff --git a/src/state.c b/src/state.c index 8bd222fb5..db31d7037 100644 --- a/src/state.c +++ b/src/state.c @@ -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; -- cgit v1.2.3