commit
b5d71c294b
|
@ -56,7 +56,7 @@ static int32_t tabObjVGIDComparator(const void* pLeft, const void* pRight) {
|
||||||
|
|
||||||
// monotonic inc in memory address
|
// monotonic inc in memory address
|
||||||
static int32_t tabObjPointerComparator(const void* pLeft, const void* pRight) {
|
static int32_t tabObjPointerComparator(const void* pLeft, const void* pRight) {
|
||||||
int64_t ret = (int64_t)pLeft - (int64_t)pRight;
|
int64_t ret = (*(STabObj**)(pLeft))->uid - (*(STabObj**)(pRight))->uid;
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -427,7 +427,7 @@ static tQueryResultset* doNestedLoopIntersect(tQueryResultset* pRes1, tQueryResu
|
||||||
}
|
}
|
||||||
|
|
||||||
static tQueryResultset* doSortIntersect(tQueryResultset* pRes1, tQueryResultset* pRes2) {
|
static tQueryResultset* doSortIntersect(tQueryResultset* pRes1, tQueryResultset* pRes2) {
|
||||||
size_t sizePtr = sizeof(void*);
|
size_t sizePtr = sizeof(void *);
|
||||||
|
|
||||||
qsort(pRes1->pRes, pRes1->num, sizePtr, tabObjPointerComparator);
|
qsort(pRes1->pRes, pRes1->num, sizePtr, tabObjPointerComparator);
|
||||||
qsort(pRes2->pRes, pRes2->num, sizePtr, tabObjPointerComparator);
|
qsort(pRes2->pRes, pRes2->num, sizePtr, tabObjPointerComparator);
|
||||||
|
|
Loading…
Reference in New Issue