We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ecb315 commit e4a1792Copy full SHA for e4a1792
cpp/src/arrow/util/int128.cc
@@ -63,7 +63,7 @@ Int128::Int128(const uint8_t* bytes)
63
void Int128::ToBytes(uint8_t** out) const {
64
DCHECK_NE(out, nullptr) << "Cannot fill nullptr of bytes from Int128";
65
DCHECK_NE(*out, nullptr) << "Cannot fill nullptr of bytes from Int128";
66
- uint64_t raw[] = {static_cast<uint64_t>(high_bits_), low_bits_};
+ const uint64_t raw[] = {static_cast<uint64_t>(high_bits_), low_bits_};
67
std::memcpy(*out, raw, 16);
68
}
69
0 commit comments