Skip to content

Commit

Permalink
Auto merge of rust-lang#130897 - workingjubilee:dump-hexes-with-class…
Browse files Browse the repository at this point in the history
…, r=thomcc

library: Compute `RUST_EXCEPTION_CLASS` from native-endian bytes

This makes it appear correctly in hexdumps on both LE and BE platforms.
  • Loading branch information
bors committed Sep 28, 2024
2 parents 3a00bff + f40ec5a commit 9f50f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panic_unwind/src/gcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

0 comments on commit 9f50f5a

Please sign in to comment.