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