From 9731ebe2b9e26c710fa47037b6c95f745798714c Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Tue, 8 Feb 2022 16:53:13 +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 b886f8f39b..34e8331d97 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -796,7 +796,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