summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-04-21 20:32:54 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-04-21 20:32:54 +0900
commit6a0d2382f1a1f3e7587450c0decc47a9bd2f8a27 (patch)
tree5f656daa753bed7d85b143b033b6171a32a40844 /src/lib/efreet
parent255e71d83ebbbba7535859fad7ede9356d5519fc (diff)
Efreet: Silence clang warning
[unsigned - unsigned] is unsigned and might wrap around, the implicit conversion to int (by calling abs()) saved the game here.
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/efreet_icon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/efreet/efreet_icon.c b/src/lib/efreet/efreet_icon.c
index 4ad8a6bf7b..89e87f015b 100644
--- a/src/lib/efreet/efreet_icon.c
+++ b/src/lib/efreet/efreet_icon.c
@@ -612,7 +612,7 @@ static double
612efreet_icon_size_distance(Efreet_Cache_Icon_Element *elem, unsigned int size) 612efreet_icon_size_distance(Efreet_Cache_Icon_Element *elem, unsigned int size)
613{ 613{
614 if (elem->type == EFREET_ICON_SIZE_TYPE_FIXED) 614 if (elem->type == EFREET_ICON_SIZE_TYPE_FIXED)
615 return (abs(elem->normal - size)); 615 return (abs((int) elem->normal - (int) size));
616 616
617 if ((elem->type == EFREET_ICON_SIZE_TYPE_SCALABLE) || 617 if ((elem->type == EFREET_ICON_SIZE_TYPE_SCALABLE) ||
618 (elem->type == EFREET_ICON_SIZE_TYPE_THRESHOLD)) 618 (elem->type == EFREET_ICON_SIZE_TYPE_THRESHOLD))