]> granicus.if.org Git - zziplib/commit
zzip: info: avoid warning due to comparison with different signedness
authorPatrick Steinhardt <ps@pks.im>
Tue, 21 May 2019 11:39:50 +0000 (13:39 +0200)
committerPatrick Steinhardt <ps@pks.im>
Thu, 1 Aug 2019 06:33:34 +0000 (08:33 +0200)
commitdbea1333ed9e6bcb6f7c21902cafa8117a25379d
treeda37beb875eb066b3bd4e648f84dd952f60cf8e6
parent089d714af0cd1002ee6d93a424dcdee3adc47095
zzip: info: avoid warning due to comparison with different signedness

In `zzip_compr_str` we compare the integer value `compr` with
`LENGTH(comprlevel)`, which returns an unsigned value, causing the
compiler to emit a warning. As we're already verifying that `compr` is a
positive value, we can just cast it to an unsigned integer to avoid that
warning.
zzip/info.c