summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/software_generic/evas_engine.c
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-06-08 16:59:45 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2015-06-08 17:09:38 +0200
commitd50cebbd4f8300b44ee7656804a103a4d38f6d1d (patch)
tree9fbe76b2fa062a9235e574f0159b54cb6d8f926a /src/modules/evas/engines/software_generic/evas_engine.c
parentef81feff16725e05ded0752b5bda09920c572e9a (diff)
modules/evas/engines/software_generic: No need to check enums for smaller 0
Evas_Image_Orient is an enum starting at 0 thus we never go below 0. Remove unneeded checks. modules/evas/engines/software_generic/evas_engine.c:1558:4: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] modules/evas/engines/software_generic/evas_engine.c:1560:8: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/software_generic/evas_engine.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_engine.c b/src/modules/evas/engines/software_generic/evas_engine.c
index 3a796f6793..0470841464 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -1555,9 +1555,7 @@ eng_image_orient_set(void *data EINA_UNUSED, void *image, Evas_Image_Orient orie
1555 1555
1556 if (!pixels_out || !pixels_in) goto on_error; 1556 if (!pixels_out || !pixels_in) goto on_error;
1557 1557
1558 if ((im->orient >= EVAS_IMAGE_ORIENT_0) && 1558 if ((im->orient <= EVAS_IMAGE_ORIENT_270) &&
1559 (im->orient <= EVAS_IMAGE_ORIENT_270) &&
1560 (orient >= EVAS_IMAGE_ORIENT_0) &&
1561 (orient <= EVAS_IMAGE_ORIENT_270)) 1559 (orient <= EVAS_IMAGE_ORIENT_270))
1562 { 1560 {
1563 // we are rotating from one anglee to another, so figure out delta 1561 // we are rotating from one anglee to another, so figure out delta