jayji pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7ef27a46691bc90ee3d2675a7b11ef972d49ed48

commit 7ef27a46691bc90ee3d2675a7b11ef972d49ed48
Author: Jean Guyomarc'h <j...@guyomarch.bzh>
Date:   Thu Mar 9 22:19:03 2017 +0100

    eldbus: don't abs() an unsigned value
    
    clang complained about abs() being used on an unsigned integer.
    Calling abs() is actually unnecessary.
---
 src/examples/eldbus/complex-types-client-eina-value.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/examples/eldbus/complex-types-client-eina-value.c 
b/src/examples/eldbus/complex-types-client-eina-value.c
index 1789321..ac657b3 100644
--- a/src/examples/eldbus/complex-types-client-eina-value.c
+++ b/src/examples/eldbus/complex-types-client-eina-value.c
@@ -31,7 +31,7 @@ _type_offset(unsigned base, unsigned size)
    unsigned padding;
    if (!(base % size))
      return base;
-   padding = abs(base - size);
+   padding = base - size;
    return base + padding;
 }
 

-- 


Reply via email to