diff options
Diffstat (limited to 'libc/inc/mem.h')
-rw-r--r-- | libc/inc/mem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inc/mem.h b/libc/inc/mem.h index 0498d8c..e4416dd 100644 --- a/libc/inc/mem.h +++ b/libc/inc/mem.h @@ -9,8 +9,8 @@ int malloc_allocated; void *malloc_debug(u32 size, const char *file, int line, const char *func, const char *inp); void free_debug(void *ptr, const char *file, int line, const char *func, const char *inp); -#define malloc(size) malloc_debug(size, __FILE__, __LINE__, __func__, #size) -#define free(ptr) free_debug(ptr, __FILE__, __LINE__, __func__, #ptr) +#define malloc(size) malloc_debug((u32)(size), __FILE__, __LINE__, __func__, #size) +#define free(ptr) free_debug((void *)(ptr), __FILE__, __LINE__, __func__, #ptr) void *realloc(void *ptr, u32 size); void *zalloc(u32 size); |