diff options
Diffstat (limited to 'utils.h')
| -rw-r--r-- | utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ #define streq(a, b) (strcmp(a, b) == 0) #define check(cond, ...) do { if (!(cond)) { fprintf(stderr, __VA_ARGS__); fwrite("\n", 1, 1, stderr); exit(1); } } while(0) -#define new(t) memcheck(calloc(sizeof(t), 1)) +#define new(t) memcheck(calloc(1, sizeof(t))) #define xcalloc(a,b) memcheck(calloc(a,b)) #define xrealloc(a,b) memcheck(realloc(a,b)) |
