From 73182bf31d719ab6c9f8c7031a2503d4e04cfb13 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 10 Mar 2021 16:53:15 +0800 Subject: [PATCH] [td-2895] refactor. --- src/query/src/qUtil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/src/qUtil.c b/src/query/src/qUtil.c index 29ccdc89c5..3970da59d4 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); } -- GitLab