From 64b75f55a70678cdee53d114d0a77742b8270d9b Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Sat, 17 Oct 2020 16:16:28 +0800 Subject: [PATCH] compile error in vs2013 --- src/tsdb/src/tsdbRead.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index a4b18606d1..b8ccbd903c 100644 --- a/src/tsdb/src/tsdbRead.c +++ b/src/tsdb/src/tsdbRead.c @@ -1963,8 +1963,9 @@ bool tsdbNextDataBlock(TsdbQueryHandleT* pHandle) { STimeWindow win = (STimeWindow) {pQueryHandle->window.skey, INT64_MAX}; STsdbQueryCond cond = { .order = TSDB_ORDER_ASC, - .numOfCols = (int32_t)(QH_GET_NUM_OF_COLS(pQueryHandle)), - .twindow = win}; + .numOfCols = (int32_t)(QH_GET_NUM_OF_COLS(pQueryHandle)) + }; + cond.twindow = win; cond.colList = calloc(cond.numOfCols, sizeof(SColumnInfo)); if (cond.colList == NULL) { -- GitLab