Efreet: Silence clang warning

[unsigned - unsigned] is unsigned and might wrap around, the implicit
conversion to int (by calling abs()) saved the game here.
This commit is contained in:
Jean-Philippe Andre 2015-04-21 20:32:54 +09:00
parent 255e71d83e
commit 6a0d2382f1
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ static double
efreet_icon_size_distance(Efreet_Cache_Icon_Element *elem, unsigned int size)
{
if (elem->type == EFREET_ICON_SIZE_TYPE_FIXED)
return (abs(elem->normal - size));
return (abs((int) elem->normal - (int) size));
if ((elem->type == EFREET_ICON_SIZE_TYPE_SCALABLE) ||
(elem->type == EFREET_ICON_SIZE_TYPE_THRESHOLD))