diff --git a/src/common/filesystem/file_zip.cpp b/src/common/filesystem/file_zip.cpp index c8977629b3..bd0d76624f 100644 --- a/src/common/filesystem/file_zip.cpp +++ b/src/common/filesystem/file_zip.cpp @@ -222,7 +222,7 @@ bool FZipFile::Open(bool quiet, LumpFilterInfo* filter) return false; } - NumLumps = info.NumEntries; + NumLumps = (uint32_t)info.NumEntries; dirsize = info.DirectorySize; DirectoryOffset = info.DirectoryOffset; } @@ -521,7 +521,7 @@ int FZipLump::GetFileOffset() { if (Method != METHOD_STORED) return -1; if (NeedFileStart) SetLumpAddress(); - return Position; + return (int)Position; } //========================================================================== diff --git a/src/common/objects/dobjgc.cpp b/src/common/objects/dobjgc.cpp index e407d3d774..8664ac541b 100644 --- a/src/common/objects/dobjgc.cpp +++ b/src/common/objects/dobjgc.cpp @@ -277,7 +277,7 @@ void MarkArray(DObject **obj, size_t count) static size_t CalcStepSize() { - int time_passed = CheckTime - LastCollectTime; + int time_passed = int(CheckTime - LastCollectTime); auto alloc = min(LastCollectAlloc, Estimate); size_t bytes_gained = AllocBytes > alloc ? AllocBytes - alloc : 0; return (StepMul > 0 && time_passed > 0) @@ -390,7 +390,7 @@ static size_t SingleStep() case GCS_Finalize: State = GCS_Pause; // end collection LastCollectAlloc = AllocBytes; - LastCollectTime = CheckTime; + LastCollectTime = (int)CheckTime; return 0; default: