mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-30 19:54:26 +01:00
Try to keep compiler from complaining about this cast that we KNOW is okay.
This commit is contained in:
@@ -87,7 +87,8 @@ void* unity_malloc(size_t size)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
guard = (Guard*)&unity_heap[heap_index];
|
/* We know we can get away with this cast because we aligned memory already */
|
||||||
|
guard = (Guard*)(void*)(&unity_heap[heap_index]);
|
||||||
heap_index += total_size;
|
heap_index += total_size;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user