diff options
| author | Roman971 <32455037+Roman971@users.noreply.github.com> | 2022-06-16 02:15:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-15 20:15:44 -0400 |
| commit | 08c8126ba55c11b8774721dedec3a5d8993503cd (patch) | |
| tree | b19dace8340a2eba1c61f07209462e57565b8fe3 /src/code/__osMalloc.c | |
| parent | 5299208291dc3032954b8b2242be2be9c7b6c7c0 (diff) | |
Enable int-conversion warnings and fix all current instances (#1280)
* Enable int-conversion warnings for gcc/clang
* Fix all current int-conversion warnings
* Run format.sh
* Apply review suggestions
Diffstat (limited to 'src/code/__osMalloc.c')
| -rw-r--r-- | src/code/__osMalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/__osMalloc.c b/src/code/__osMalloc.c index 30e99cecb..19de34a8b 100644 --- a/src/code/__osMalloc.c +++ b/src/code/__osMalloc.c @@ -442,7 +442,7 @@ void __osFree_NoLock(Arena* arena, void* ptr) { ArenaImpl_SetDebugInfo(node, NULL, 0, arena); if (arena->flag & FILL_FREEBLOCK) { - __osMemset((u32)node + sizeof(ArenaNode), BLOCK_FREE_MAGIC, node->size); + __osMemset((void*)((u32)node + sizeof(ArenaNode)), BLOCK_FREE_MAGIC, node->size); } newNext = next; @@ -512,7 +512,7 @@ void __osFree_NoLockDebug(Arena* arena, void* ptr, const char* file, s32 line) { ArenaImpl_SetDebugInfo(node, file, line, arena); if (arena->flag & FILL_FREEBLOCK) { - __osMemset((u32)node + sizeof(ArenaNode), BLOCK_FREE_MAGIC, node->size); + __osMemset((void*)((u32)node + sizeof(ArenaNode)), BLOCK_FREE_MAGIC, node->size); } newNext = node->next; |
