diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index 6ce40b92040836d5e4d8dd7575f3e8b6aa618079..0c07149e8e0b20e91123d9491ab25acfff75f5d4 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -4524,7 +4524,7 @@ static void doCopyQueryResultToMsg(SQInfo *pQInfo, int32_t numOfRows, char *data } } - int32_t numOfTables = taosHashGetSize(pQInfo->arrTableIdInfo); + int32_t numOfTables = (int32_t) taosHashGetSize(pQInfo->arrTableIdInfo); *(int32_t*)data = htonl(numOfTables); data += sizeof(int32_t);