diff options
author | Marvin Borner | 2021-02-24 15:28:40 +0100 |
---|---|---|
committer | Marvin Borner | 2021-02-24 15:28:40 +0100 |
commit | 6281f580674813e58f083f63031c433393a30129 (patch) | |
tree | ea8587a1abf7097cd30265e7aebf4b79cfcbb810 /libc/inc/mem.h | |
parent | e0100f6b98fc3b453d38024f579ead7cf84f581c (diff) |
Awesome indeed
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); |