diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 2d682895871c6c916c68acf955035fabd7cb17eb..a1d0e11f9d310b68b9a95fd1f9d4d643f102c65c 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -1312,7 +1312,7 @@ int tscBuildCreateTableMsg(SSqlObj *pSql, SSqlInfo *pInfo) { if (type == TSQL_CREATE_TABLE_FROM_STABLE) { // create by using super table, tags value SArray* list = pInfo->pCreateTableInfo->childTableInfo; - int32_t numOfTables = taosArrayGetSize(list); + int32_t numOfTables = (int32_t) taosArrayGetSize(list); pCreateTableMsg->numOfTables = htonl(numOfTables); pMsg = (char*) pCreateMsg;