From 4f959dbfcbda203cf77bf0e5a1fd2e506c26cfc8 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Fri, 29 Jan 2021 10:46:54 +0800 Subject: [PATCH] [TD-225]fix compiler error. --- 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 5c19082542..b1b458b671 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -4115,7 +4115,7 @@ int32_t setParamValue(SQueryRuntimeEnv* pRuntimeEnv) { pRuntimeEnv->pCtx[i].param[0].arr = NULL; pRuntimeEnv->pCtx[i].param[0].nType = TSDB_DATA_TYPE_INT; // avoid freeing the memory by setting the type to be int - int32_t numOfGroup = taosArrayGetSize(pRuntimeEnv->prevResult); + int32_t numOfGroup = (int32_t) taosArrayGetSize(pRuntimeEnv->prevResult); for(int32_t j = 0; j < numOfGroup; ++j) { SInterResult *p = taosArrayGet(pRuntimeEnv->prevResult, j); if (pQuery->tagLen == 0 || memcmp(p->tags, pRuntimeEnv->tagVal, pQuery->tagLen) == 0) { -- GitLab