summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-24 11:15:58 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-24 11:15:58 +0200
commit65b2dd391afd781243d44223df0b7d0d4ec0ef85 (patch)
tree2f6473b08600755825140f15788abe10995f55e7
parentc9fe6d64a8a3a88631777107fbf89aa5824163c8 (diff)
eina_value_util_type_offset: abs(unsigned int) is nonsense
-rw-r--r--src/lib/eina/eina_inline_value_util.x2
1 files changed, 1 insertions, 1 deletions
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)
58 size = eina_value_util_type_size(type); 58 size = eina_value_util_type_size(type);
59 if (!(base % size)) 59 if (!(base % size))
60 return base; 60 return base;
61 padding = abs(base - size); 61 padding = ( (base > size) ? (base - size) : (size - base));
62 return base + padding; 62 return base + padding;
63} 63}
64 64