Skip to content

Commit

Permalink
Add const_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
aditi-pandit committed Dec 6, 2024
1 parent 80f9459 commit 227b64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion velox/vector/arrow/Bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ void exportViews(
uint64_t bufferAddrCache = 0;

rows.apply([&](vector_size_t i) {
auto view = (uint32_t*)&utf8Views[2 * i];
auto view = const_cast<uint32_t*>(reinterpret_cast<const uint32_t*>(&utf8Views[2 * i]));
if (!vec.isNullAt(i) && view[0] > 12) {
uint64_t currAddr = *reinterpret_cast<const uint64_t*>(&view[2]);
// 2. Search for correct index with the buffer-pointer as key. Cache the
Expand Down

0 comments on commit 227b64b

Please sign in to comment.