From c0b07642c4a4a466a6cb71b86d2878302b507c38 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sun, 10 Mar 2024 11:54:20 +0300 Subject: [PATCH] static-vs-dynamic-mem-alloc.c: make sure to avoid macro integer overflow --- c-programming/experiments/static-vs-dynamic-mem-alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c-programming/experiments/static-vs-dynamic-mem-alloc.c b/c-programming/experiments/static-vs-dynamic-mem-alloc.c index a83782a..d9bb009 100644 --- a/c-programming/experiments/static-vs-dynamic-mem-alloc.c +++ b/c-programming/experiments/static-vs-dynamic-mem-alloc.c @@ -10,7 +10,7 @@ #include #include -#define MULTIPLIER ((size_t) 268435456) +#define MULTIPLIER 268435456ULL void empty(uint8_t** mem); void static_memory_allocation(uint8_t** mem);