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:
Subodh Kumar 2017-10-09 16:38:25 -07:00 committed by Cedric Bail
parent f418d62af3
commit c5e3196731
1 changed files with 1 additions and 1 deletions

View File

@ -1602,7 +1602,7 @@ _emile_jpeg_head(Emile_Image *image,
RECTS_CLIP_TO_RECT(load_region_x, load_region_y,
load_region_w, load_region_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);
_emile_jpeg_membuf_src_term(&cinfo);