diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index 0b3b65c1848be31dced284f0c014d94696e47bf4..a7a523638982efd5ed62d1a800b4c77868ed2761 100644 --- a/src/tsdb/src/tsdbRead.c +++ b/src/tsdb/src/tsdbRead.c @@ -2121,7 +2121,7 @@ static int32_t doGetExternalRow(STsdbQueryHandle* pQueryHandle, int16_t type, SM } // prepare the structure - int32_t numOfCols = QH_GET_NUM_OF_COLS(pQueryHandle); + int32_t numOfCols = (int32_t) QH_GET_NUM_OF_COLS(pQueryHandle); if (type == TSDB_PREV_ROW) { pQueryHandle->prev = taosArrayInit(numOfCols, sizeof(SColumnInfoData));