mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-17 02:34:44 +03:00
use appropriate type for SIZE_MAX
This commit is contained in:
parent
9fb00976fc
commit
c3c16dda4a
|
@ -268,7 +268,7 @@ j2k_encode_entry(Imaging im, ImagingCodecState state,
|
||||||
unsigned _overflow_scale_factor;
|
unsigned _overflow_scale_factor;
|
||||||
/* SIZE_MAX is not working in the conditionals unless it's a typed
|
/* SIZE_MAX is not working in the conditionals unless it's a typed
|
||||||
variable */
|
variable */
|
||||||
unsigned _SIZE__MAX = SIZE_MAX;
|
size_t _SIZE__MAX = SIZE_MAX;
|
||||||
|
|
||||||
stream = opj_stream_default_create(OPJ_FALSE);
|
stream = opj_stream_default_create(OPJ_FALSE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user