From 97c2d5cf9b9831bd06fc8c8c9e7188bfa65d1dbe Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Mon, 18 Dec 2023 17:41:49 -0500 Subject: [PATCH] lint --- c/driver/postgresql/postgres_copy_reader.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/c/driver/postgresql/postgres_copy_reader.h b/c/driver/postgresql/postgres_copy_reader.h index ecfdde4ba1..b9c883133d 100644 --- a/c/driver/postgresql/postgres_copy_reader.h +++ b/c/driver/postgresql/postgres_copy_reader.h @@ -1294,7 +1294,7 @@ class PostgresCopyNumericFieldWriter : public PostgresCopyFieldWriter { NANOARROW_RETURN_NOT_OK(WriteChecked(buffer, dscale, error)); const size_t pg_digit_bytes = sizeof(int16_t) * pg_digits.size(); - NANOARROW_RETURN_NOT_OK(ArrowBufferReserve(buffer, pg_digit_bytes)); + NANOARROW_RETURN_NOT_OK(ArrowBufferReserve(buffer, pg_digit_bytes)); for (auto pg_digit : pg_digits) { WriteUnsafe(buffer, pg_digit); } @@ -1356,7 +1356,8 @@ class PostgresCopyNumericFieldWriter : public PostgresCopyFieldWriter { static constexpr uint16_t kNumericPos = 0x0000; static constexpr uint16_t kNumericNeg = 0x4000; static constexpr int32_t bitwidth_ = (T == NANOARROW_TYPE_DECIMAL128) ? 128 : 256; - static constexpr size_t max_decimal_digits_ = (T == NANOARROW_TYPE_DECIMAL128) ? 39 : 78; + static constexpr size_t max_decimal_digits_ = + (T == NANOARROW_TYPE_DECIMAL128) ? 39 : 78; const int32_t precision_; const int32_t scale_; };