You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-gimli/0001-Fix-BigEndian-build.patch

26 lines
768 B

From 391beaee2397b86480b2e855571a00b4af58b2d2 Mon Sep 17 00:00:00 2001
From: Philip Craig <philipjcraig@gmail.com>
Date: Tue, 2 Jan 2018 12:57:50 +1000
Subject: [PATCH] Fix BigEndian build
---
src/parser.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/parser.rs b/src/parser.rs
index 0df4d94..ed717bb 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -633,7 +633,7 @@ mod tests {
let input = [expected.0, 1, 2, 3, 4];
let input = &mut EndianBuf::new(&input, NativeEndian);
assert_eq!(parse_pointer_encoding(input), Ok(expected));
- assert_eq!(*input, EndianBuf::new(&[1, 2, 3, 4], LittleEndian));
+ assert_eq!(*input, EndianBuf::new(&[1, 2, 3, 4], NativeEndian));
}
#[test]
--
2.15.1