Skip to content

Commit

Permalink
C4Group: Change checked cast to static cast for time stamps as there …
Browse files Browse the repository at this point in the history
…are actually groups with (wrong) negative values
  • Loading branch information
maxmitti committed Mar 12, 2022
1 parent ce127c2 commit 0e5cb2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/C4Group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ bool C4Group::AddEntry(int status,
if (entryname) SCopy(entryname, nentry->FileName, _MAX_FNAME);
else SCopy(GetFilename(fname), nentry->FileName, _MAX_FNAME);
nentry->Size = checked_cast<int32_t>(size);
nentry->Time = checked_cast<uint32_t>(time + C4Group_AssumeTimeOffset);
nentry->Time = static_cast<uint32_t>(time + C4Group_AssumeTimeOffset);
nentry->ChildGroup = childgroup;
nentry->Offset = 0;
nentry->HasCRC = cCRC;
Expand Down

0 comments on commit 0e5cb2d

Please sign in to comment.