From 810cfefddc57239176b51114919a1d1d2fc4935a Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Thu, 31 Mar 2022 16:28:59 +0800 Subject: [PATCH] [td-13039] fix bug found by compiling. --- source/libs/executor/inc/executil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/executor/inc/executil.h b/source/libs/executor/inc/executil.h index c09b41f0f6..3faf208c0e 100644 --- a/source/libs/executor/inc/executil.h +++ b/source/libs/executor/inc/executil.h @@ -106,13 +106,13 @@ static FORCE_INLINE SResultRow *getResultRow(SDiskbasedBuf* pBuf, SResultRowInfo ASSERT(pResultRowInfo != NULL && slot >= 0 && slot < pResultRowInfo->size); SResultRowPosition* pos = &pResultRowInfo->pPosition[slot]; - SFilePage* bufPage = getBufPage(pBuf, pos->pageId); + SFilePage* bufPage = (SFilePage*) getBufPage(pBuf, pos->pageId); SResultRow* pRow = (SResultRow*)((char*)bufPage + pos->offset); return pRow; } static FORCE_INLINE SResultRow *getResultRowByPos(SDiskbasedBuf* pBuf, SResultRowPosition* pos) { - SFilePage* bufPage = getBufPage(pBuf, pos->pageId); + SFilePage* bufPage = (SFilePage*) getBufPage(pBuf, pos->pageId); SResultRow* pRow = (SResultRow*)((char*)bufPage + pos->offset); return pRow; }