diff --git a/source/common/console/c_enginecmds.cpp b/source/common/console/c_enginecmds.cpp index 4911b9f44..38e64ab46 100644 --- a/source/common/console/c_enginecmds.cpp +++ b/source/common/console/c_enginecmds.cpp @@ -244,7 +244,7 @@ CCMD (wdir) { if (wadnum == -1 || fileSystem.GetFileContainer(i) == wadnum) { - Printf ("%10d %s\n", fileSystem.FileLength(i), fileSystem.GetFileFullName(i)); + Printf ("%10ld %s\n", fileSystem.FileLength(i), fileSystem.GetFileFullName(i)); } } } diff --git a/source/common/filesystem/source/filesystem.cpp b/source/common/filesystem/source/filesystem.cpp index b931920e9..74da5a260 100644 --- a/source/common/filesystem/source/filesystem.cpp +++ b/source/common/filesystem/source/filesystem.cpp @@ -434,7 +434,7 @@ void FileSystem::AddFile (const char *filename, FileReader *filer, LumpFilterInf snprintf(cksumout + (j * 2), 3, "%02X", cksum[j]); } - fprintf(hashfile, "file: %s, lump: %s, hash: %s, size: %llu\n", filename, resfile->getName(i), cksumout, (uint64_t)resfile->Length(i)); + fprintf(hashfile, "file: %s, lump: %s, hash: %s, size: %lu\n", filename, resfile->getName(i), cksumout, (uint64_t)resfile->Length(i)); } } } diff --git a/source/common/scripting/backend/codegen.cpp b/source/common/scripting/backend/codegen.cpp index 84f7e76b4..66f99e8b4 100644 --- a/source/common/scripting/backend/codegen.cpp +++ b/source/common/scripting/backend/codegen.cpp @@ -11674,7 +11674,7 @@ FxExpression *FxThreeArgForEachLoop::Resolve(FCompileContext &ctx) if(HasGameSpecificThreeArgForEachLoopTypeNames()) { - ScriptPosition.Message(MSG_ERROR, "foreach( a, b, c : it ) - 'it' must be % but is a %s", GetGameSpecificThreeArgForEachLoopTypeNames(), BlockIteratorExpr->ValueType->DescriptiveName()); + ScriptPosition.Message(MSG_ERROR, "foreach( a, b, c : it ) - 'it' must be %s but is a %s", GetGameSpecificThreeArgForEachLoopTypeNames(), BlockIteratorExpr->ValueType->DescriptiveName()); delete this; return nullptr; } @@ -11727,7 +11727,7 @@ FxExpression *FxTypedForEachLoop::Resolve(FCompileContext &ctx) if(HasGameSpecificTypedForEachLoopTypeNames()) { - ScriptPosition.Message(MSG_ERROR, "foreach(Type var : it ) - 'it' must be % but is a %s",GetGameSpecificTypedForEachLoopTypeNames(), Expr->ValueType->DescriptiveName()); + ScriptPosition.Message(MSG_ERROR, "foreach(Type var : it ) - 'it' must be %s but is a %s",GetGameSpecificTypedForEachLoopTypeNames(), Expr->ValueType->DescriptiveName()); delete this; return nullptr; } diff --git a/source/core/initfs.cpp b/source/core/initfs.cpp index 9e47401b1..a482115ac 100644 --- a/source/core/initfs.cpp +++ b/source/core/initfs.cpp @@ -450,7 +450,7 @@ void InitFileSystem(TArray& groups) for (int num = 0; num < fileSystem.GetNumEntries(); num++) { int64_t fd = fileSystem.FileLength(num); - fprintf(f, "%.50s %60s %lld\n", fileSystem.GetFileFullName(num), fileSystem.GetResourceFileFullName(fileSystem.GetFileContainer(num)), fd); + fprintf(f, "%.50s %60s %ld\n", fileSystem.GetFileFullName(num), fileSystem.GetResourceFileFullName(fileSystem.GetFileContainer(num)), fd); } fclose(f); }