mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Use unsigned size_t
This commit is contained in:
parent
48ac517c8d
commit
71f48e19b9
|
@ -385,7 +385,7 @@ j2k_encode_entry(Imaging im, ImagingCodecState state) {
|
|||
float *pq;
|
||||
|
||||
if (len > 0) {
|
||||
if ((ssize_t)len >
|
||||
if ((size_t)len >
|
||||
sizeof(params.tcp_rates) / sizeof(params.tcp_rates[0])) {
|
||||
len = sizeof(params.tcp_rates) / sizeof(params.tcp_rates[0]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user