diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index a3f5abdbfd3e3a2d038a49e07152f5ef3bbc9187..e12597e32dd6ddce1d4b5d60a74d379ecc903a20 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -1548,7 +1548,7 @@ int tscBuildCompactMsg(SSqlObj *pSql, SSqlInfo *pInfo) { STscObj *pObj = pSql->pTscObj; SSqlCmd *pCmd = &pSql->cmd; SArray *pList = pInfo->list; - int32_t size = taosArrayGetSize(pList); + int32_t size = (int32_t)taosArrayGetSize(pList); int32_t *result = malloc(sizeof(int32_t) * size); if (result == NULL) {