提交 bcf2e490 编写于 作者: H Haojun Liao

[TD-225]fix compiler error.

上级 59e902d9
...@@ -5161,7 +5161,7 @@ int32_t validateEp(char* ep) { ...@@ -5161,7 +5161,7 @@ int32_t validateEp(char* ep) {
} }
int32_t validateDNodeConfig(SMiscInfo* pOptions) { int32_t validateDNodeConfig(SMiscInfo* pOptions) {
int32_t numOfToken = taosArrayGetSize(pOptions->a); int32_t numOfToken = (int32_t) taosArrayGetSize(pOptions->a);
if (numOfToken < 2 || numOfToken > 3) { if (numOfToken < 2 || numOfToken > 3) {
return TSDB_CODE_TSC_INVALID_SQL; return TSDB_CODE_TSC_INVALID_SQL;
...@@ -5233,7 +5233,7 @@ int32_t validateDNodeConfig(SMiscInfo* pOptions) { ...@@ -5233,7 +5233,7 @@ int32_t validateDNodeConfig(SMiscInfo* pOptions) {
} }
int32_t validateLocalConfig(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) { if (numOfToken < 1 || numOfToken > 2) {
return TSDB_CODE_TSC_INVALID_SQL; return TSDB_CODE_TSC_INVALID_SQL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册