From 8e93238e18809c807f3a3a0c86eb8763d824e3cb Mon Sep 17 00:00:00 2001 From: PBerger Date: Sat, 21 Sep 2013 01:58:36 +0200 Subject: [PATCH] Fixed a stray void* to char* conversion (still trying to please Clang) Former-commit-id: eb1514ffb1f7456b6af9374738590175952e0899 --- resources/3rdparty/cudd-2.5.0/src/nanotrav/ucbqsort.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/3rdparty/cudd-2.5.0/src/nanotrav/ucbqsort.c b/resources/3rdparty/cudd-2.5.0/src/nanotrav/ucbqsort.c index c3d23efd3..376feafdd 100644 --- a/resources/3rdparty/cudd-2.5.0/src/nanotrav/ucbqsort.c +++ b/resources/3rdparty/cudd-2.5.0/src/nanotrav/ucbqsort.c @@ -121,7 +121,7 @@ qst(void *base, char *max) * max with loser of first and take larger. Things are set up to * prefer the middle, then the first in case of ties. */ - lo = max - base; /* number of elements as chars */ + lo = max - ((char*)base); /* number of elements as chars */ do { mid = i = ((char*)base) + qsz * ((lo / qsz) >> 1); if (lo >= mthresh) { @@ -189,7 +189,7 @@ qst(void *base, char *max) * of at least size THRESH. */ i = (j = mid) + qsz; - if ((lo = j - base) <= (hi = max - i)) { + if ((lo = j - ((char*)base)) <= (hi = max - i)) { if (lo >= thresh) qst(base, j); base = i;