From 9be6fb9b1e40aebb51c0090946d9503811bcd0c5 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 20 Jan 2021 02:29:42 +0000 Subject: [PATCH] fix compile error on windows --- src/query/src/qExecutor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index 08731a87d7..e15caaf0e9 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -4409,7 +4409,7 @@ static int32_t getPercentileFromSortedArray(const SArray* pArray, float rate) { int idx = (int32_t)((len - 1) * rate); return ((SDataBlockInfo *)(taosArrayGet(pArray, idx)))->rows; } -static int32_t compareBlockInfo(const void *pLeft, const void *pRight) { +static int compareBlockInfo(const void *pLeft, const void *pRight) { int32_t left = ((SDataBlockInfo *)pLeft)->rows; int32_t right = ((SDataBlockInfo *)pRight)->rows; if (left > right) return 1; -- GitLab