Skip to content

Commit 7379d87

Browse files
author
bors-servo
authored
Auto merge of #176 - servo:32, r=emilio
Make tests pass on a 32-bit system. Testable on 64-bit Linux with: ``` rustup target add i686-unknown-linux-gnu cargo test --target i686-unknown-linux-gnu ``` (or similarly on anther 64-bit platforms), assuming a linker and libc for this target are available on the system. Leaving #162 open to add CI for this. (Unfortunately Travis doesn’t use rustup out of the box.) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/string-cache/176) <!-- Reviewable:end -->
2 parents 3a18e14 + 40d8629 commit 7379d87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/atom/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,8 @@ mod tests {
723723
// Guard against accidental changes to the sizes of things.
724724
assert_eq!(mem::size_of::<super::Atom>(),
725725
if compiler_uses_inline_drop_flags { 16 } else { 8 });
726-
assert_eq!(40, mem::size_of::<super::StringCacheEntry>());
726+
assert_eq!(mem::size_of::<super::StringCacheEntry>(),
727+
8 + 4 * mem::size_of::<usize>());
727728
}
728729

729730
#[test]

0 commit comments

Comments
 (0)