diff --git a/src/cpBBTree.c b/src/cpBBTree.c index 2cef7bc7..c822c75a 100644 --- a/src/cpBBTree.c +++ b/src/cpBBTree.c @@ -544,7 +544,7 @@ cpBBTreeAlloc(void) return (cpBBTree *)cpcalloc(1, sizeof(cpBBTree)); } -static int +static cpBool leafSetEql(void *obj, Node *node) { return (obj == node->obj); diff --git a/src/cpSpaceHash.c b/src/cpSpaceHash.c index 556c8d38..b5369739 100644 --- a/src/cpSpaceHash.c +++ b/src/cpSpaceHash.c @@ -69,7 +69,7 @@ cpHandleRelease(cpHandle *hand, cpArray *pooledHandles) if(hand->retain == 0) cpArrayPush(pooledHandles, hand); } -static int handleSetEql(void *obj, cpHandle *hand){return (obj == hand->obj);} +static cpBool handleSetEql(void *obj, cpHandle *hand){return (obj == hand->obj);} static void * handleSetTrans(void *obj, cpSpaceHash *hash) @@ -564,7 +564,7 @@ cpSpaceHashCount(cpSpaceHash *hash) return cpHashSetCount(hash->handleSet); } -static int +static cpBool cpSpaceHashContains(cpSpaceHash *hash, void *obj, cpHashValue hashid) { return cpHashSetFind(hash->handleSet, hashid, obj) != NULL; diff --git a/src/cpSweep1D.c b/src/cpSweep1D.c index 94c4e225..42bffbcc 100644 --- a/src/cpSweep1D.c +++ b/src/cpSweep1D.c @@ -117,7 +117,7 @@ cpSweep1DEach(cpSweep1D *sweep, cpSpatialIndexIteratorFunc func, void *data) for(int i=0, count=sweep->num; itable;