forked from enlightenment/efl
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:
parent
255e71d83e
commit
6a0d2382f1
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue