Skip to content

Commit

Permalink
malloc to calloc converter is now x86_64 only
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed May 26, 2024
1 parent 4513519 commit ed3495a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ccode/malloc.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#include <stddef.h>
#include <stdlib.h>

#if defined(__x86_64__)
void* g_malloc(size_t size){
return (void*) calloc((size_t)1, size);
}

void* malloc(size_t size){
return (void*) calloc((size_t)1, size);
}
#endif

0 comments on commit ed3495a

Please sign in to comment.