mmozeiko / pkg2zip

Decrypts PlayStation Vita pkg file and packages to zip archive
The Unlicense
406 stars 89 forks source link

Compilation issue - "comparison between signed and unsigned integer expressions" #5

Closed JohnVeness closed 6 years ago

JohnVeness commented 6 years ago

On my Linux system, when I try to compile I get the following:

$ make
[C] pkg2zip_utils.c
[C] pkg2zip_aes.c
[C] pkg2zip.c
[C] pkg2zip_crc32.c
[C] pkg2zip_aes_x86.c
[C] pkg2zip_zip.c
[C] pkg2zip_crc32_x86.c
[C] pkg2zip_sys.c
pkg2zip_sys.c: In function ‘sys_read’:
pkg2zip_sys.c:157:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     if (read != size)
              ^
pkg2zip_sys.c: In function ‘sys_write’:
pkg2zip_sys.c:166:15: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     if (wrote != size)
               ^
cc1: all warnings being treated as errors
makefile:36: recipe for target 'pkg2zip_sys.o' failed
make: *** [pkg2zip_sys.o] Error 1
mmozeiko commented 6 years ago

Ah, 32-bit Linux. Was not testing pkg2zip on it. Get the latest source - its fixed there.

JohnVeness commented 6 years ago

Thanks, latest source compiles fine.