mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-05-31 08:31:41 +05:30
static-vs-dynamic-mem-alloc.c: make sure to avoid macro integer overflow
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
#define MULTIPLIER ((size_t) 268435456)
|
||||
#define MULTIPLIER 268435456ULL
|
||||
|
||||
void empty(uint8_t** mem);
|
||||
void static_memory_allocation(uint8_t** mem);
|
||||
|
Reference in New Issue
Block a user