From 40da35fa079c16db0f059726a28c08833f40d8e1 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 20 Jan 2021 01:58:36 +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 2ccf012bf1..08731a87d7 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -4401,7 +4401,7 @@ static void freeTableBlockDist(STableBlockDist *pTableBlockDist) { } } static int32_t getPercentileFromSortedArray(const SArray* pArray, float rate) { - int32_t len = taosArrayGetSize(pArray); + int32_t len = (int32_t)taosArrayGetSize(pArray); if (len <= 0) { return 0; } -- GitLab