Mark manually-checked pair as safe.

This commit is contained in:
Sigilante 2023-11-17 10:40:41 -06:00 committed by GitHub
parent 0cb6cb3063
commit 379bd2279a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -473,7 +473,7 @@ impl IndirectAtom {
} }
/** Produce a SoftFloat-compatible ordered pair of 64-bit words */ /** Produce a SoftFloat-compatible ordered pair of 64-bit words */
pub unsafe fn as_u64_pair(self) -> Result<[u64; 2]> { pub fn as_u64_pair(self) -> Result<[u64; 2]> {
if self.size() <= 2 { if self.size() <= 2 {
let u128_array = &mut [0u64; 2]; let u128_array = &mut [0u64; 2];
u128_array.copy_from_slice(&(self.as_slice()[0..2])); u128_array.copy_from_slice(&(self.as_slice()[0..2]));