Skip to content

Commit

Permalink
apacheGH-38090: [C++][Emscripten] integration: Suppress shorten-64-to…
Browse files Browse the repository at this point in the history
…-32 warnings

We need explicit cast to use `int64_t` for `size_t` on Emscripten.

Explicit casts.
  • Loading branch information
kou committed Oct 7, 2023
1 parent 3697bcd commit fc70f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/integration/json_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ class ArrayReader {

data_->null_count = 0;
for (int64_t i = 0; i < length; ++i) {
if (is_valid_[i]) {
if (is_valid_[static_cast<size_t>(i)]) {
bit_util::SetBit(bitmap, i);
} else {
++data_->null_count;
Expand Down

0 comments on commit fc70f99

Please sign in to comment.