From fff1e084ae75f2d2217beb3f6a951dce7957b38a Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 10 Mar 2021 16:54:20 +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 3970da59d4..6271fab7a8 100644 --- a/src/query/src/qUtil.c +++ b/src/query/src/qUtil.c @@ -626,7 +626,7 @@ void blockDistInfoFromBinary(const char* data, int32_t len, STableBlockDist* pDi bool comp = tbufReadUint8(&br); uint32_t compLen = tbufReadUint32(&br); - size_t originalLen = numOfBlocks*sizeof(SFileBlockInfo); + size_t originalLen = (size_t) (numOfBlocks*sizeof(SFileBlockInfo)); char* outputBuf = NULL; if (comp) { -- GitLab