no arithmetic pointer on void *

SVN revision: 46085
This commit is contained in:
Vincent Torri 2010-02-11 18:47:11 +00:00
parent e9bc23874c
commit ed57ba09ed
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ static void _free(void *data, void *element)
unsigned int offset;
unsigned int index;
offset = element - b->heap;
offset = (unsigned char *)element - (unsigned char *)b->heap;
if (offset > b->size)
return;
index = offset >> b->min_order;