File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -511,13 +511,13 @@ pub const fn u32_from_le_bytes(bytes: [u8; 4]) -> u32 {
511
511
512
512
#[ doc( hidden) ]
513
513
pub const fn u64_from_be_bytes ( bytes : [ u8 ; 8 ] ) -> u64 {
514
- ( u32_from_be_bytes ( [ bytes[ 4 ] , bytes[ 5 ] , bytes[ 6 ] , bytes[ 7 ] ] ) as u64 ) << 32
515
- | u32_from_be_bytes ( [ bytes[ 0 ] , bytes[ 1 ] , bytes[ 2 ] , bytes[ 3 ] ] ) as u64
514
+ ( u32_from_be_bytes ( [ bytes[ 0 ] , bytes[ 1 ] , bytes[ 2 ] , bytes[ 3 ] ] ) as u64 ) << 32
515
+ | ( u32_from_be_bytes ( [ bytes[ 4 ] , bytes[ 5 ] , bytes[ 6 ] , bytes[ 7 ] ] ) as u64 )
516
516
}
517
517
518
518
#[ doc( hidden) ]
519
519
pub const fn u64_from_le_bytes ( bytes : [ u8 ; 8 ] ) -> u64 {
520
- ( u32_from_le_bytes ( [ bytes[ 0 ] , bytes[ 1 ] , bytes[ 2 ] , bytes[ 3 ] ] ) as u64 ) << 32
520
+ ( u32_from_le_bytes ( [ bytes[ 4 ] , bytes[ 5 ] , bytes[ 6 ] , bytes[ 7 ] ] ) as u64 ) << 32
521
521
| u32_from_le_bytes ( [ bytes[ 0 ] , bytes[ 1 ] , bytes[ 2 ] , bytes[ 3 ] ] ) as u64
522
522
}
523
523
You can’t perform that action at this time.
0 commit comments