From 3bd62538e947c8fb6c74429fbc7bf52ec2dfb374 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 21 Jun 2012 11:55:19 +0000 Subject: [PATCH] Elm gengrid: (void *) and substraction don't play nicely together. SVN revision: 72594 --- src/lib/elm_gengrid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index 2cd895e..354cdb7 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -1839,7 +1839,7 @@ _elm_gengrid_item_compare(const void *data, const void *data1) else if (item1 && item1->wd && item1->wd->item_compare_cb) cb = item1->wd->item_compare_cb; if (cb && it && item1) return cb(it, item1); - d = data - data1; + d = (char *) data - (char *) data1; if (d < 0) return -1; if (!d) return 0; return 1; -- 2.7.4