Skip to content

Commit b473311

Browse files
committed
Make alignment-forcing case work the same on 64 and 32-bit platforms
1 parent fe7adfe commit b473311

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/run-pass/type-sizes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ enum e2 {
2626
}
2727

2828
enum e3 {
29-
a([u64, ..0], u32), b
29+
a([u16, ..0], u8), b
3030
}
3131

3232
pub fn main() {
@@ -51,5 +51,5 @@ pub fn main() {
5151

5252
assert_eq!(size_of::<e1>(), 8 as uint);
5353
assert_eq!(size_of::<e2>(), 8 as uint);
54-
assert_eq!(size_of::<e3>(), 16 as uint);
54+
assert_eq!(size_of::<e3>(), 4 as uint);
5555
}

0 commit comments

Comments
 (0)