|
@@ -1008,7 +1008,7 @@ int rtree_search(struct RTree *t, struct Rect *r, SearchHitCallback shcb,
|
|
|
RTreeOverlap(r, &(s[top].sn.branch[i].rect), t)) {
|
|
|
hitCount++;
|
|
|
if (shcb) { /* call the user-provided callback */
|
|
|
- if (!shcb(s[top].sn.branch[i].child.id, cbarg)) {
|
|
|
+ if (!shcb((int)s[top].sn.branch[i].child, cbarg)) {
|
|
|
/* callback wants to terminate search early */
|
|
|
return hitCount;
|
|
|
}
|