eina_value_util_type_offset: abs(unsigned int) is nonsense

This commit is contained in:
Jérémy Zurcher 2014-09-24 11:15:58 +02:00
parent c9fe6d64a8
commit 65b2dd391a
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ eina_value_util_type_offset(const Eina_Value_Type *type, unsigned int base)
size = eina_value_util_type_size(type);
if (!(base % size))
return base;
padding = abs(base - size);
padding = ( (base > size) ? (base - size) : (size - base));
return base + padding;
}