Merge pull request #5280 from cgohlke/patch-1

Fix suspicious sequence of types castings
This commit is contained in:
wiredfool 2021-03-01 20:19:26 +00:00 committed by GitHub
commit c477bed95f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,7 +385,7 @@ j2k_encode_entry(Imaging im, ImagingCodecState state) {
float *pq;
if (len > 0) {
if ((unsigned)len >
if ((size_t)len >
sizeof(params.tcp_rates) / sizeof(params.tcp_rates[0])) {
len = sizeof(params.tcp_rates) / sizeof(params.tcp_rates[0]);
}