mirror of
https://github.com/mmozeiko/pkg2zip.git
synced 2026-09-02 19:23:09 +03:00
fix warning in VS2017 build
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
|
||||
cd "%~dp0"
|
||||
|
||||
set CL=/nologo /errorReport:none /Gm- /GF /GS- /MT /W4 /wd4324
|
||||
set CL=/nologo /errorReport:none /Gm- /GF /GS- /MT /W4 /WX /wd4324
|
||||
set LINK=/errorReport:none /INCREMENTAL:NO
|
||||
|
||||
set CL=%CL% /Ox
|
||||
|
||||
+1
-1
@@ -287,7 +287,7 @@ void zip_close(zip* z)
|
||||
set16le(extra + 0, 1);
|
||||
// size of this "extra" block
|
||||
uint32_t extra_offset = 2 * sizeof(uint16_t);
|
||||
set16le(extra + 2, extra_size - extra_offset);
|
||||
set16le(extra + 2, (uint16_t)(extra_size - extra_offset));
|
||||
if (size > 0xffffffff)
|
||||
{
|
||||
// original uncompressed file size
|
||||
|
||||
Reference in New Issue
Block a user