Skip to content

Commit a12682d

Browse files
authored
Merge pull request #1134 from alexanderkjall/gix-features-i386-test-failure
test size_of_sha1 reports wrong size on i386
2 parents f09ea13 + 1d45f05 commit a12682d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-features/tests/hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ fn size_of_sha1() {
99
#[cfg(feature = "fast-sha1")]
1010
#[test]
1111
fn size_of_sha1() {
12-
assert_eq!(std::mem::size_of::<Sha1>(), 104)
12+
assert_eq!(std::mem::size_of::<Sha1>(), if cfg!(target_arch = "x86") { 96 } else { 104 })
1313
}

0 commit comments

Comments
 (0)