From aadd0d06977db24bdd696dbf362337ca9d991c94 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sun, 25 Apr 2021 19:07:43 +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 873e8f8133..39d70e1966 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -5616,7 +5616,7 @@ SOperatorInfo* createSLimitOperatorInfo(SQueryRuntimeEnv* pRuntimeEnv, SOperator len += pExpr[i].base.resBytes; } - int32_t numOfCols = pInfo->orderColumnList != NULL? taosArrayGetSize(pInfo->orderColumnList):0; + int32_t numOfCols = pInfo->orderColumnList != NULL? (int32_t) taosArrayGetSize(pInfo->orderColumnList):0; pInfo->prevRow = calloc(1, (POINTER_BYTES * numOfCols + len)); int32_t offset = POINTER_BYTES * numOfCols; -- GitLab