tasn pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=2800c120253f617e0044330985d5080d0472ff84

commit 2800c120253f617e0044330985d5080d0472ff84
Author: Tom Hacohen <t...@stosb.com>
Date:   Wed Mar 12 09:39:10 2014 +0000

    Elm test dnd: Fixed substraction of void *.
    
    This is not allowed. The pointers need to be cast to char * before doing
    pointer arithmetics.
---
 src/bin/test_dnd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/test_dnd.c b/src/bin/test_dnd.c
index 2f538f4..1507ade 100644
--- a/src/bin/test_dnd.c
+++ b/src/bin/test_dnd.c
@@ -46,7 +46,7 @@ static Ecore_Timer *_5s_timeout = NULL;
 static int
 _item_ptr_cmp(const void *d1, const void *d2)
 {
-   return (d1 - d2);
+   return ((const char *) d1 - (const char *) d2);
 }
 
 static Elm_Genlist_Item_Class *itc1;

-- 


Reply via email to