i can't believe i released this with a bug
This commit is contained in:
parent
e8a8377330
commit
bb911ac8e4
4
main.c
4
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();
|
||||
|
|
Loading…
Reference in a new issue