summaryrefslogtreecommitdiff
path: root/src/lib/emile
diff options
context:
space:
mode:
authorSubodh Kumar <s7158.kumar@samsung.com>2017-10-09 16:38:25 -0700
committerCedric Bail <cedric@osg.samsung.com>2017-10-09 16:38:28 -0700
commitc5e3196731ba1f5a6e995c2cc0f2a530224dce2d (patch)
tree7b81fa1e2ec54eb14eea8d37313210590a05eade /src/lib/emile
parentf418d62af3624ce6d1a9667bb500ef59d9389d7a (diff)
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>
Diffstat (limited to 'src/lib/emile')
-rw-r--r--src/lib/emile/emile_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/emile/emile_image.c b/src/lib/emile/emile_image.c
index 9a0bdb04c4..32722b722f 100644
--- a/src/lib/emile/emile_image.c
+++ b/src/lib/emile/emile_image.c
@@ -1602,7 +1602,7 @@ _emile_jpeg_head(Emile_Image *image,
1602 RECTS_CLIP_TO_RECT(load_region_x, load_region_y, 1602 RECTS_CLIP_TO_RECT(load_region_x, load_region_y,
1603 load_region_w, load_region_h, 1603 load_region_w, load_region_h,
1604 0, 0, prop->w, prop->h); 1604 0, 0, prop->w, prop->h);
1605 if ((load_region_w <= 0) || (load_region_h <= 0)) 1605 if ((load_region_w == 0) || (load_region_h == 0))
1606 { 1606 {
1607 jpeg_destroy_decompress(&cinfo); 1607 jpeg_destroy_decompress(&cinfo);
1608 _emile_jpeg_membuf_src_term(&cinfo); 1608 _emile_jpeg_membuf_src_term(&cinfo);