From 0e5cb2d7000050a1056ae0dbc21bdb294f663a7d Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sat, 12 Mar 2022 15:45:26 +0100 Subject: [PATCH] C4Group: Change checked cast to static cast for time stamps as there are actually groups with (wrong) negative values --- src/C4Group.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/C4Group.cpp b/src/C4Group.cpp index 4b6058c74..07f15bf18 100644 --- a/src/C4Group.cpp +++ b/src/C4Group.cpp @@ -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(size); - nentry->Time = checked_cast(time + C4Group_AssumeTimeOffset); + nentry->Time = static_cast(time + C4Group_AssumeTimeOffset); nentry->ChildGroup = childgroup; nentry->Offset = 0; nentry->HasCRC = cCRC;