From: Jérémy Zurcher Date: Wed, 24 Sep 2014 09:15:58 +0000 (+0200) Subject: eina_value_util_type_offset: abs(unsigned int) is nonsense X-Git-Tag: v1.12.0-alpha1~219 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65b2dd391afd781243d44223df0b7d0d4ec0ef85;p=platform%2Fupstream%2Fefl.git eina_value_util_type_offset: abs(unsigned int) is nonsense --- diff --git a/src/lib/eina/eina_inline_value_util.x b/src/lib/eina/eina_inline_value_util.x index 2cb96e4dc0..a6a854e9fa 100644 --- a/src/lib/eina/eina_inline_value_util.x +++ b/src/lib/eina/eina_inline_value_util.x @@ -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; }