Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-38090: [C++][Emscripten] acero/hash_join: Suppress shorten-64-to-32 warnings #38093

Conversation

kou
Copy link
Member

@kou kou commented Oct 6, 2023

Rationale for this change

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

What changes are included in this PR?

Explicit casts.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

…4-to-32 warnings

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

Explicit casts.
@kou kou requested a review from westonpace as a code owner October 6, 2023 21:18
@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting committer review Awaiting committer review labels Oct 9, 2023
@@ -478,9 +478,10 @@ class HashJoinBasicImpl : public HashJoinImpl {
ARROW_DCHECK(batch[i].is_scalar());
if (!batch[i].scalar_as<arrow::internal::PrimitiveScalarBase>().is_valid) {
if (nn_bit_vector_all_nulls->empty()) {
nn_bit_vector_all_nulls->resize(bit_util::BytesForBits(batch.length));
nn_bit_vector_all_nulls->resize(
static_cast<size_t>(bit_util::BytesForBits(batch.length)));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consider making BytesForBits return size_t.

@kou kou closed this Jan 23, 2024
@kou kou deleted the cpp-suppress-shorten-64-to-32-warning-acero-hash-join branch January 23, 2024 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C++][Emscripten] Suppress shorten-64-to-32 warnings
3 participants