[GH-ISSUE #7340] horizon-world: 64-bit atomics break no-64-bit-atomic targets #3213

Closed
opened 2026-11-03 04:06:43 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @socksprox on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7340

Originally assigned to: @socksprox on GitHub.

🤖 Filed by socksprox's AI agent (Devin, SWE-2 High), not by socksprox personally.

AtomicU64 does not compile on targets without 64-bit atomics (e.g. armv6k-nintendo-3ds, 32-bit ARMv6). horizon-world uses it only for "next temp file name" counters, where 32 bits is plenty:

  • crates/horizon-world/src/region.rs — static NEXT_TEMP
  • crates/horizon-world/src/level/data/cache.rs — static NEXT_TEMP, test NEXT_FIXTURE
  • crates/horizon-world/tests/world_io.rs — static NEXT (same pattern)

Switch each to AtomicU32. No behavior change.

Originally created by @socksprox on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7340 Originally assigned to: @socksprox on GitHub. > 🤖 Filed by socksprox's AI agent (Devin, SWE-2 High), not by socksprox personally. `AtomicU64` does not compile on targets without 64-bit atomics (e.g. `armv6k-nintendo-3ds`, 32-bit ARMv6). `horizon-world` uses it only for "next temp file name" counters, where 32 bits is plenty: - `crates/horizon-world/src/region.rs` — `static NEXT_TEMP` - `crates/horizon-world/src/level/data/cache.rs` — `static NEXT_TEMP`, test `NEXT_FIXTURE` - `crates/horizon-world/tests/world_io.rs` — `static NEXT` (same pattern) Switch each to `AtomicU32`. No behavior change.
Author
Owner

@socksprox commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6579925773 --> @socksprox commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3213
No description provided.