mirror of
https://github.com/mmozeiko/pkg2zip.git
synced 2026-09-03 03:29:59 +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
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
|
||||||
cd "%~dp0"
|
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 LINK=/errorReport:none /INCREMENTAL:NO
|
||||||
|
|
||||||
set CL=%CL% /Ox
|
set CL=%CL% /Ox
|
||||||
|
|||||||
+1
-1
@@ -287,7 +287,7 @@ void zip_close(zip* z)
|
|||||||
set16le(extra + 0, 1);
|
set16le(extra + 0, 1);
|
||||||
// size of this "extra" block
|
// size of this "extra" block
|
||||||
uint32_t extra_offset = 2 * sizeof(uint16_t);
|
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)
|
if (size > 0xffffffff)
|
||||||
{
|
{
|
||||||
// original uncompressed file size
|
// original uncompressed file size
|
||||||
|
|||||||
Reference in New Issue
Block a user