use appropriate type for SIZE_MAX

This commit is contained in:
homm 2016-06-19 23:48:53 +03:00
parent 9fb00976fc
commit c3c16dda4a

View File

@ -268,7 +268,7 @@ j2k_encode_entry(Imaging im, ImagingCodecState state,
unsigned _overflow_scale_factor;
/* SIZE_MAX is not working in the conditionals unless it's a typed
variable */
unsigned _SIZE__MAX = SIZE_MAX;
size_t _SIZE__MAX = SIZE_MAX;
stream = opj_stream_default_create(OPJ_FALSE);