From 7d799c498ab5a055596a141e1f0473d964dfc808 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Tue, 8 Feb 2022 16:48:14 +0800 Subject: [PATCH] [TS-1177](query): use int32_t instead of int16_t to fix integer overflow --- src/query/src/qExecutor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index 1fc0c5ac6d..4036095d49 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -757,7 +757,7 @@ static bool resultRowInterpolated(SResultRow* pResult, SResultTsInterpType type) } } -static FORCE_INLINE int32_t getForwardStepsInBlock(int32_t numOfRows, __block_search_fn_t searchFn, TSKEY ekey, int16_t pos, +static FORCE_INLINE int32_t getForwardStepsInBlock(int32_t numOfRows, __block_search_fn_t searchFn, TSKEY ekey, int32_t pos, int16_t order, int64_t *pData) { int32_t forwardStep = 0; -- GitLab