Skip to content

Conversation

@glbrntt
Copy link
Contributor

@glbrntt glbrntt commented Mar 24, 2025

Motivation:

A few tests are failing to compiler on 32-bit platforms with recently nightly toolchains. These tests are skipped if Int is 32 bits wide but the compiler doesn't know that.

Modifications:

  • Use overflow addition to stop the compiler from complaining; the addition won't ever actually overflow because of the runtime check done ahead of time.

Result:

Motivation:

A few tests are failing to compiler on 32-bit platforms with recently
nightly toolchains. These tests are skipped if `Int` is 32 bits wide but
the compiler doesn't know that.

Modifications:

- Use overflow addition to stop the compiler from complaining; the
  addition won't ever actually overflow because of the runtime check
  done ahead of time.

Result:

- Tests compile again
- Resolves apple#3154
@glbrntt glbrntt added the semver/none No version bump required. label Mar 24, 2025
@glbrntt glbrntt requested a review from rnro March 24, 2025 09:58
@glbrntt glbrntt enabled auto-merge (squash) March 27, 2025 11:07
@glbrntt glbrntt merged commit 825d963 into apple:main Mar 27, 2025
39 of 41 checks passed
@glbrntt glbrntt deleted the tests-32-bit branch March 27, 2025 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NIO tests no longer build for 32-bit Android armv7 with the latest 6.1 March 20 snapshot

2 participants