mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[PR #1939] fix(rust): Fix 32-bit build failures (i686, armv7l) #2742
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1939
State: closed
Merged: Yes
Summary
Fix two build failures on 32-bit architectures reported by Void Linux maintainer.
Fix 1: i686 build failure (#1937)
The code was importing
std::arch::x86_64::*even when compiled for 32-bit x86:Fix: Use separate conditional imports for each architecture.
Fix 2: armv7l build failure (#1938)
The literal
0xcdcdcdcdcdcdcdcdis a 64-bit value that doesn't fit in 32-bitusize:Fix: Define a platform-appropriate constant (64-bit:
0xcdcdcdcdcdcdcdcd, 32-bit:0xcdcdcdcd).Test plan
cargo checkpasses on x86_64Fixes #1937
Fixes #1938
🤖 Generated with Claude Code