From 0c9a2bf9d83ba101e26136409be3db20552eca24 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Tue, 8 Feb 2022 17:00:34 +0800 Subject: [PATCH] [TS-1177](query): use int32_t instead of int16_t to fix integer overflow --- src/query/src/qExecutor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index 5fa5186479..a28171502e 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -758,7 +758,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; @@ -10106,4 +10106,4 @@ bool queryReadOverCB(void* param) { return true; } return false; -} \ No newline at end of file +} -- GitLab