From ba60fa9dbf7f3c30e8532727c72d682e3bf4b7a1 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Fri, 29 Jan 2021 11:03:45 +0800 Subject: [PATCH] [TD-225]fix compiler error. --- src/query/src/qUtil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/query/src/qUtil.c b/src/query/src/qUtil.c index 94dc77fca3..71ee0f2435 100644 --- a/src/query/src/qUtil.c +++ b/src/query/src/qUtil.c @@ -242,7 +242,7 @@ void interResToBinary(SBufferWriter* bw, SArray* pRes, int32_t tagLen) { tbufWriteBinary(bw, pOne->tags, tagLen); } - uint32_t numOfCols = taosArrayGetSize(pOne->pResult); + uint32_t numOfCols = (uint32_t) taosArrayGetSize(pOne->pResult); tbufWriteUint32(bw, numOfCols); for(int32_t j = 0; j < numOfCols; ++j) { SStddevInterResult* p = taosArrayGet(pOne->pResult, j); @@ -315,7 +315,7 @@ void freeInterResult(void* param) { SInterResult* pResult = (SInterResult*) param; tfree(pResult->tags); - int32_t numOfCols = taosArrayGetSize(pResult->pResult); + int32_t numOfCols = (int32_t) taosArrayGetSize(pResult->pResult); for(int32_t i = 0; i < numOfCols; ++i) { SStddevInterResult *p = taosArrayGet(pResult->pResult, i); taosArrayDestroy(p->pResult); -- GitLab