Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Commit 4966fcb

Browse files
committed
Fix off-by-one error in int96 test case
1 parent 5976d59 commit 4966fcb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parquet/arrow/arrow-reader-writer-test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ TEST_F(TestInt96ParquetIO, ReadIntoTimestamp) {
491491
// 2nd January 1970, 11:35min 145738543ns
492492
Int96 day;
493493
day.value[2] = 2440589l;
494-
int64_t seconds = ((1 * 24 + 11) * 60 + 35) * 60;
494+
int64_t seconds = (11 * 60 + 35) * 60;
495495
*(reinterpret_cast<int64_t*>(&(day.value))) =
496496
seconds * 1000l * 1000l * 1000l + 145738543;
497497
// Compute the corresponding nanosecond timestamp

0 commit comments

Comments
 (0)