mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- silenced some warnings.
This commit is contained in:
parent
2be13e1b9f
commit
c23abd1930
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue