Skip to content

Commit

Permalink
use appropriate type for SIZE_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
homm committed Jun 19, 2016
1 parent 9fb0097 commit c3c16dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libImaging/Jpeg2KEncode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c3c16dd

Please sign in to comment.