From bb911ac8e43e8723bff77796906b2ff7294a3016 Mon Sep 17 00:00:00 2001 From: ari melody Date: Sun, 11 Feb 2024 00:43:00 +0000 Subject: [PATCH] i can't believe i released this with a bug --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 7e2c30c..744b915 100644 --- a/main.c +++ b/main.c @@ -31,11 +31,11 @@ int main() { printf("please wait...\n"); char* wtf = (char*) malloc(size * sizeof(char)); - for (int i = 0; i < size; i++) { + for (long long unsigned int i = 0; i < size; i++) { wtf[i] = 255; } - printf("%d bytes of heap memory has been allocated. you are insane.\n", size); + printf("%llu bytes of heap memory has been allocated. you are insane.\n", size); printf("press any key to release this memory, or CTRL+C to exit the program.\n"); getchar();