提交 5dd59311 编写于 作者: M mvandervoord

Try to keep compiler from complaining about this cast that we KNOW is okay.

上级 94dc637d
...@@ -87,7 +87,8 @@ void* unity_malloc(size_t size) ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册