From ba43b8e563786f75b949915d754115bb54e2b81c Mon Sep 17 00:00:00 2001 From: kakachen Date: Sun, 27 Apr 2025 11:32:54 +0800 Subject: [PATCH] [Fix] Revert PR309 computeRGIdx() changes, it will fix in the next PR. --- c++/src/Reader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c++/src/Reader.cc b/c++/src/Reader.cc index 542eda5c9e2..2cfd6417c5b 100644 --- a/c++/src/Reader.cc +++ b/c++/src/Reader.cc @@ -1407,7 +1407,7 @@ namespace orc { * @return Id of the RowGroup that the row belongs to */ int RowReaderImpl::computeRGIdx(uint64_t rowIndexStride, long rowIdx) { - return rowIndexStride == 0 ? 0 : static_cast(rowIdx / static_cast(rowIndexStride)); + return rowIndexStride == 0 ? 0 : (int)(rowIdx / rowIndexStride); } /**