Skip to content

Commit

Permalink
void* does not have its size.
Browse files Browse the repository at this point in the history
  • Loading branch information
unak committed Apr 20, 2012
1 parent 2161737 commit d2a3852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pool.c
Expand Up @@ -68,7 +68,7 @@ mrb_pool_alloc(mrb_pool *pool, size_t len)
if (page->offset + len <= page->len) {
n = page->offset;
page->offset += len;
page->last = (void*)page->page+n;
page->last = (char*)page->page+n;
return page->last;
}
page = page->next;
Expand Down

0 comments on commit d2a3852

Please sign in to comment.