fix warning in VS2017 build

This commit is contained in:
Martins Mozeiko
2017-10-28 12:24:12 -07:00
parent c559947a23
commit 36bdf4c529
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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