X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Falloc%2Ftest%2Frun.c;h=d5b40c8c3708d13a1c138f902d596ba1d8f40691;hp=a6d021ff9e5dc87b3d1f25cf821fc15215031208;hb=e5d378237fd2c9dd0c710bed9d8f9e1538de6d02;hpb=5caaeab8a7448390eb857006f9b3704de60cf115 diff --git a/ccan/alloc/test/run.c b/ccan/alloc/test/run.c index a6d021ff..d5b40c8c 100644 --- a/ccan/alloc/test/run.c +++ b/ccan/alloc/test/run.c @@ -11,7 +11,7 @@ static int addr_cmp(void **a, void **b) { - return (*a) - (*b); + return (char *)(*a) - (char *)(*b); } static bool unique(void *p[], unsigned int num)