1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-26 11:30:03 +05:30

static-vs-dynamic-mem-alloc.c: make sure to avoid macro integer overflow

This commit is contained in:
Intel A80486DX2-66 2024-03-10 11:54:20 +03:00
parent df8d36b8d5
commit c0b07642c4
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -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);