diff --git a/src/tsdb/src/tsdbRecover.c b/src/tsdb/src/tsdbRecover.c index d0022b013529bdc8c36ada419e881c4d517262ca..de3a912cc3bd973f91173d4bd41203ada73879b8 100644 --- a/src/tsdb/src/tsdbRecover.c +++ b/src/tsdb/src/tsdbRecover.c @@ -252,7 +252,7 @@ static int tsdbRefactorHeadF(STsdbRepo *pRepo, SRecoverH *pRecoverH, SDFileSet * return -1; } - int arraySize = taosArrayGetSize(pReadH->aBlkIdx); + int arraySize = (int)taosArrayGetSize(pReadH->aBlkIdx); SBlock supBlk; for (int iBlkIdx = 0; iBlkIdx < arraySize; ++iBlkIdx) { pReadH->pBlkIdx = taosArrayGet(pReadH->aBlkIdx, iBlkIdx);