Skip to content

Commit d5e44c5

Browse files
neuschaeferchyyran
authored andcommitted
reflect: fix big-endian build
Use the same approach that is used on little-endian.
1 parent 6e6ba13 commit d5e44c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • spirv-cross2/src/reflect

spirv-cross2/src/reflect/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn enum_slice_is_not_max<T>(enum_slice: &[i32]) -> bool {
2424
#[cfg(target_endian = "big")]
2525
let memchr = memchr::memmem::find(
2626
bytemuck::must_cast_slice(enum_slice),
27-
&*i32::MAX.to_be_bytes(),
27+
i32::MAX.to_be_bytes().as_slice(),
2828
);
2929

3030
#[cfg(target_endian = "little")]

0 commit comments

Comments
 (0)