From 7da756f2c0f142cfb50cd7028da3d541cc18324c Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sat, 23 Jan 2021 15:10:30 +0800 Subject: [PATCH] [TD-225]fix compiler error. --- src/tsdb/src/tsdbRead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index 0b3b65c184..a7a5236389 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)); -- GitLab