Skip to content

Commit 9f50f5a

Browse files
committed
Auto merge of rust-lang#130897 - workingjubilee:dump-hexes-with-class, r=thomcc
library: Compute `RUST_EXCEPTION_CLASS` from native-endian bytes This makes it appear correctly in hexdumps on both LE and BE platforms.
2 parents 3a00bff + f40ec5a commit 9f50f5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

panic_unwind/src/gcc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ pub unsafe fn cleanup(ptr: *mut u8) -> Box<dyn Any + Send> {
107107

108108
// Rust's exception class identifier. This is used by personality routines to
109109
// determine whether the exception was thrown by their own runtime.
110-
const RUST_EXCEPTION_CLASS: uw::_Unwind_Exception_Class = u64::from_be_bytes(*b"MOZ\0RUST");
110+
const RUST_EXCEPTION_CLASS: uw::_Unwind_Exception_Class = u64::from_ne_bytes(*b"MOZ\0RUST");

0 commit comments

Comments
 (0)