simple type casting
This commit is contained in:
@ -643,7 +643,7 @@ static void* _realloc_merge (hawk_xma_t* xma, void* b, hawk_oow_t size)
|
|||||||
/* link the leftover block to the free list */
|
/* link the leftover block to the free list */
|
||||||
mblk_size(blk) = size;
|
mblk_size(blk) = size;
|
||||||
|
|
||||||
y = next_mblk(blk); /* update y to the leftover block with the new block size set above */
|
y = (hawk_uint8_t*)next_mblk(blk); /* update y to the leftover block with the new block size set above */
|
||||||
mblk_free(y) = 1;
|
mblk_free(y) = 1;
|
||||||
mblk_size(y) = rem - MBLKHDRSIZE;
|
mblk_size(y) = rem - MBLKHDRSIZE;
|
||||||
mblk_prev_size(y) = mblk_size(blk);
|
mblk_prev_size(y) = mblk_size(blk);
|
||||||
|
Reference in New Issue
Block a user