mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-05 00:39:04 +00:00
fixed displaying u64 values in printf
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -305,7 +305,7 @@ u8* ImportFile(char *file, u64 size)
|
|||||||
u64 fsize = GetFileSize_u64(file);
|
u64 fsize = GetFileSize_u64(file);
|
||||||
if(size > 0){
|
if(size > 0){
|
||||||
if(size != fsize){
|
if(size != fsize){
|
||||||
fprintf(stderr,"[!] %s has an invalid size (0x%llx)\n",file, fsize);
|
fprintf(stderr,"[!] %s has an invalid size (0x%"PRIx64")\n",file, fsize);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user