Skip to content

fix(internal): fix assertion on undefined behavior#602

Merged
zeroshade merged 1 commit intoapache:mainfrom
amoeba:fix/arrow-go-math-test-ub
Dec 9, 2025
Merged

fix(internal): fix assertion on undefined behavior#602
zeroshade merged 1 commit intoapache:mainfrom
amoeba:fix/arrow-go-math-test-ub

Conversation

@amoeba
Copy link
Copy Markdown
Member

@amoeba amoeba commented Dec 8, 2025

Rationale for this change

Prior to this PR, TestMul_64bit in internal/utils/math_64bit_test.go fails on macOS aarch64. This wasn't caught on CI because there's no CI job for macOS aarch64. The behavior under test is technically undefined behavior (int(NaN) is UB).

What changes are included in this PR?

Just to keep the change small, I did the minimum necessary to make the assertion pass on all platforms.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

Closes #413

@zeroshade zeroshade merged commit 35d5488 into apache:main Dec 9, 2025
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TestMul_64bit fails assertion on macOS aarch64

2 participants