emile: comparing less than zero with unsigned interger.
Summary: Unsigned integer should not be compared to less than zero. @fix Reviewers: cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5270 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
This commit is contained in:
parent
f418d62af3
commit
c5e3196731
|
@ -1602,7 +1602,7 @@ _emile_jpeg_head(Emile_Image *image,
|
||||||
RECTS_CLIP_TO_RECT(load_region_x, load_region_y,
|
RECTS_CLIP_TO_RECT(load_region_x, load_region_y,
|
||||||
load_region_w, load_region_h,
|
load_region_w, load_region_h,
|
||||||
0, 0, prop->w, prop->h);
|
0, 0, prop->w, prop->h);
|
||||||
if ((load_region_w <= 0) || (load_region_h <= 0))
|
if ((load_region_w == 0) || (load_region_h == 0))
|
||||||
{
|
{
|
||||||
jpeg_destroy_decompress(&cinfo);
|
jpeg_destroy_decompress(&cinfo);
|
||||||
_emile_jpeg_membuf_src_term(&cinfo);
|
_emile_jpeg_membuf_src_term(&cinfo);
|
||||||
|
|
Loading…
Reference in New Issue