File: relax-sizeof-test.patch

package info (click to toggle)
rust-rustyline 17.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,032 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 442 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: rustyline/src/binding.rs
===================================================================
--- rustyline.orig/src/binding.rs
+++ rustyline/src/binding.rs
@@ -252,6 +252,8 @@ mod test {
     #[cfg(target_arch = "x86_64")]
     fn size_of_event() {
         use core::mem::size_of;
-        assert_eq!(size_of::<Event>(), 32);
+        if size_of::<Event>() > 32 {
+            assert_eq!(size_of::<Event>(), 32);
+        }
     }
 }