From 1cc43ceeb847a797cca4f0aea9615b86cff36ad8 Mon Sep 17 00:00:00 2001 From: Phillip Cloud Date: Wed, 23 Aug 2017 23:14:16 -0400 Subject: [PATCH] Use CHAR_BIT --- cpp/src/arrow/array.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/arrow/array.cc b/cpp/src/arrow/array.cc index c566f3054da3a..f8fd27532c10f 100644 --- a/cpp/src/arrow/array.cc +++ b/cpp/src/arrow/array.cc @@ -161,7 +161,7 @@ PrimitiveArray::PrimitiveArray(const std::shared_ptr& type, int64_t le const uint8_t* PrimitiveArray::raw_values() const { return raw_values_ + - offset() * static_cast(*type()).bit_width() / 8; + offset() * static_cast(*type()).bit_width() / CHAR_BIT; } template