Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cast between incompatible function type #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cpBBTree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/cpSpaceHash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/cpSweep1D.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ cpSweep1DEach(cpSweep1D *sweep, cpSpatialIndexIteratorFunc func, void *data)
for(int i=0, count=sweep->num; i<count; i++) func(table[i].obj, data);
}

static int
static cpBool
cpSweep1DContains(cpSweep1D *sweep, void *obj, cpHashValue hashid)
{
TableCell *table = sweep->table;
Expand Down