From 875f0edb46a7ee91a4a6a696458ec860702a13bd Mon Sep 17 00:00:00 2001 From: Godzil Date: Sat, 14 Nov 2020 20:30:09 +0000 Subject: [PATCH] printf can be a pain at time. --- source/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/memory.cpp b/source/memory.cpp index 38130f4..931a77a 100644 --- a/source/memory.cpp +++ b/source/memory.cpp @@ -252,7 +252,7 @@ char *load_file(char *filename) fstat(fd, &FileStat); - printf("Trying to load %s, size = %lu...\n",filename, FileStat.st_size); + printf("Trying to load %s, size = %lu...\n",filename, (unsigned long)FileStat.st_size); ret_ptr = (char *)mmap(NULL, FileStat.st_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);