Skip to content

Commit

Permalink
Use CHAR_BIT
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Aug 24, 2017
1 parent 355fb24 commit 1cc43ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ PrimitiveArray::PrimitiveArray(const std::shared_ptr<DataType>& type, int64_t le

const uint8_t* PrimitiveArray::raw_values() const {
return raw_values_ +
offset() * static_cast<const FixedWidthType&>(*type()).bit_width() / 8;
offset() * static_cast<const FixedWidthType&>(*type()).bit_width() / CHAR_BIT;
}

template <typename T>
Expand Down

0 comments on commit 1cc43ce

Please sign in to comment.