From bcf2e490151b48f08fe7ff647030300cf770e96f Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 20 Jan 2021 12:13:26 +0800 Subject: [PATCH] [TD-225]fix compiler error. --- src/client/src/tscSQLParser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index a0d310c07f..53bf91cd05 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -5161,7 +5161,7 @@ int32_t validateEp(char* ep) { } int32_t validateDNodeConfig(SMiscInfo* pOptions) { - int32_t numOfToken = taosArrayGetSize(pOptions->a); + int32_t numOfToken = (int32_t) taosArrayGetSize(pOptions->a); if (numOfToken < 2 || numOfToken > 3) { return TSDB_CODE_TSC_INVALID_SQL; @@ -5233,7 +5233,7 @@ int32_t validateDNodeConfig(SMiscInfo* pOptions) { } int32_t validateLocalConfig(SMiscInfo* pOptions) { - int32_t numOfToken = taosArrayGetSize(pOptions->a); + int32_t numOfToken = (int32_t) taosArrayGetSize(pOptions->a); if (numOfToken < 1 || numOfToken > 2) { return TSDB_CODE_TSC_INVALID_SQL; } -- GitLab