richgel999 / miniz

miniz: Single C source file zlib-replacement library, originally from code.google.com/p/miniz
MIT License
2.16k stars 321 forks source link

Compiler warnings on 32-bit #303

Open star-hengxing opened 6 months ago

star-hengxing commented 6 months ago

https://github.com/richgel999/miniz/blob/16413c213de38e703d883006193734e8b1178d5d/miniz_zip.c#L3253

comparison is always false due to limited range of data type

|     if (((mz_uint64)buf_size > 0xFFFFFFFF) || (uncomp_size > 0xFFFFFFFF)) {
|                              ^

https://github.com/richgel999/miniz/commit/f542e6df737167a9850a4f60104e9dadbdf5ebad didn't fix the problem.

phuchm commented 3 months ago

Me too. Any updates to fix it?