Don't do pointer arithmetic on void pointers.

This commit is contained in:
Hallvard Furuseth 2003-05-22 21:52:02 +00:00
parent 3961effec9
commit 6d3d9fe027

View File

@ -79,7 +79,7 @@ sl_mem_detach(
)
{
struct slab_heap *sh = memctx;
int size = sh->h_end - sh->h_base;
int size = (char *) sh->h_end - (char *) sh->h_base;
sh->h_base = ch_realloc( sh->h_base, size );