mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 05:08:23 +00:00
[quick-fix]file-util: fmtlib errors on FILE* type parameter. Explicitly cast it to void*
This commit is contained in:
parent
972db17247
commit
39fce60145
1 changed files with 2 additions and 2 deletions
|
@ -371,12 +371,12 @@ u64 GetSize(FILE* f) {
|
|||
// can't use off_t here because it can be 32-bit
|
||||
u64 pos = ftello(f);
|
||||
if (fseeko(f, 0, SEEK_END) != 0) {
|
||||
NGLOG_ERROR(Common_Filesystem, "GetSize: seek failed {}: {}", f, GetLastErrorMsg());
|
||||
NGLOG_ERROR(Common_Filesystem, "GetSize: seek failed {}: {}", (void*)f, GetLastErrorMsg());
|
||||
return 0;
|
||||
}
|
||||
u64 size = ftello(f);
|
||||
if ((size != pos) && (fseeko(f, pos, SEEK_SET) != 0)) {
|
||||
NGLOG_ERROR(Common_Filesystem, "GetSize: seek failed {}: {}", f, GetLastErrorMsg());
|
||||
NGLOG_ERROR(Common_Filesystem, "GetSize: seek failed {}: {}", (void*)f, GetLastErrorMsg());
|
||||
return 0;
|
||||
}
|
||||
return size;
|
||||
|
|
Loading…
Reference in a new issue