projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9fe6d6
)
eina_value_util_type_offset: abs(unsigned int) is nonsense
author
Jérémy Zurcher
<jeremy@asynk.ch>
Wed, 24 Sep 2014 09:15:58 +0000
(11:15 +0200)
committer
Jérémy Zurcher
<jeremy@asynk.ch>
Wed, 24 Sep 2014 09:15:58 +0000
(11:15 +0200)
src/lib/eina/eina_inline_value_util.x
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_inline_value_util.x
b/src/lib/eina/eina_inline_value_util.x
index 2cb96e4dc08dec6076d9cafe735dd6dca6d9438b..a6a854e9fa486ddf1b3dbad8bbc7370bce0060ee 100644
(file)
--- 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;
}