File: fix-test-i386.patch

package info (click to toggle)
rust-framehop 0.13.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 484 kB
  • sloc: makefile: 2
file content (17 lines) | stat: -rw-r--r-- 572 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: rust-framehop-0.13.0/src/rule_cache.rs
===================================================================
--- rust-framehop-0.13.0.orig/src/rule_cache.rs
+++ rust-framehop-0.13.0/src/rule_cache.rs
@@ -140,7 +140,11 @@ mod tests {
         );
         assert_eq!(
             core::mem::size_of::<Option<CacheEntry<UnwindRuleAarch64>>>(),
-            24 // <-- larger than we'd like
+            if core::mem::align_of::<u64>() == 8 {
+                24 // <-- larger than we'd like
+            } else {
+                20
+            }
         );
     }
 }