about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-09-26 11:33:12 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-09-26 11:34:17 -0700
commitf21f4cd60e764f4e6a37cb9d7cc1b1445ad3044f (patch)
treebcc9b7d509bfcc23e2815b7dea016a721f54210a
parentf2becdff0496003217e7fc6fbfcaf2640e162775 (diff)
downloadrust-f21f4cd60e764f4e6a37cb9d7cc1b1445ad3044f.tar.gz
rust-f21f4cd60e764f4e6a37cb9d7cc1b1445ad3044f.zip
library: Compute `RUST_EXCEPTION_CLASS` from native-endian bytes
This makes it appear correctly in hexdumps on both LE and BE platforms.
-rw-r--r--library/panic_unwind/src/gcc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/panic_unwind/src/gcc.rs b/library/panic_unwind/src/gcc.rs
index 89b44338d6b..925af6c0832 100644
--- a/library/panic_unwind/src/gcc.rs
+++ b/library/panic_unwind/src/gcc.rs
@@ -107,4 +107,4 @@ pub unsafe fn cleanup(ptr: *mut u8) -> Box<dyn Any + Send> {
 
 // Rust's exception class identifier.  This is used by personality routines to
 // determine whether the exception was thrown by their own runtime.
-const RUST_EXCEPTION_CLASS: uw::_Unwind_Exception_Class = u64::from_be_bytes(*b"MOZ\0RUST");
+const RUST_EXCEPTION_CLASS: uw::_Unwind_Exception_Class = u64::from_ne_bytes(*b"MOZ\0RUST");