This commit is contained in:
jl777
2016-10-27 10:24:27 -03:00
parent bf301bb67f
commit b9a9c9fae5
2 changed files with 8 additions and 8 deletions

View File

@@ -1130,9 +1130,9 @@ void myfree(void *_ptr,long allocsize)
void free_queueitem(void *itemdata)
{
struct queueitem *item = (void *)((long)itemdata - sizeof(struct queueitem));
struct queueitem *item = (struct queueitem *)((long)itemdata - sizeof(struct queueitem));
//printf("freeq item.%p itemdata.%p size.%d\n",item,itemdata,item->allocsize);
_myfree(item->type,item->allocsize,item,item->allocsize);
myfree(item,item->allocsize);
}
void *mycalloc(uint8_t type,int32_t n,long itemsize)