Skip to content

Commit 098f4fb

Browse files
committed
MIN_ALIGN is definitely 8 on 32-bit x86, at least on Windows.
Signed-off-by: Peter Atashian <retep998@gmail.com>
1 parent abfadfe commit 098f4fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liballoc_system/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ extern crate libc;
2929
// The minimum alignment guaranteed by the architecture. This value is used to
3030
// add fast paths for low alignment values. In practice, the alignment is a
3131
// constant at the call site and the branch will be optimized out.
32-
#[cfg(all(any(target_arch = "arm",
32+
#[cfg(all(any(target_arch = "x86",
33+
target_arch = "arm",
3334
target_arch = "mips",
3435
target_arch = "mipsel",
3536
target_arch = "powerpc")))]
3637
const MIN_ALIGN: usize = 8;
37-
#[cfg(all(any(target_arch = "x86",
38-
target_arch = "x86_64",
38+
#[cfg(all(any(target_arch = "x86_64",
3939
target_arch = "aarch64")))]
4040
const MIN_ALIGN: usize = 16;
4141

0 commit comments

Comments
 (0)