diff --git a/src/query/src/qUtil.c b/src/query/src/qUtil.c index 29ccdc89c5ddd8afd69a66ffe7bfe5c870c3f2b8..3970da59d497060087e21eff3932c16e36ddf55e 100644 --- a/src/query/src/qUtil.c +++ b/src/query/src/qUtil.c @@ -642,7 +642,7 @@ void blockDistInfoFromBinary(const char* data, int32_t len, STableBlockDist* pDi outputBuf = (char*) tbufReadBinary(&br, &originalLen); } - pDist->dataBlockInfos = taosArrayFromList(outputBuf, numOfBlocks, sizeof(SFileBlockInfo)); + pDist->dataBlockInfos = taosArrayFromList(outputBuf, (uint32_t) numOfBlocks, sizeof(SFileBlockInfo)); if (comp) { tfree(outputBuf); }