make llvm tests work again

This commit is contained in:
Folkert 2023-09-11 22:24:50 +02:00
parent 59af059912
commit 5ca3d3bcf1
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
13 changed files with 244 additions and 132 deletions

View file

@ -406,6 +406,12 @@ impl RocDec {
}
}
impl From<i32> for RocDec {
fn from(value: i32) -> Self {
RocDec::from_ne_bytes((RocDec::ONE_POINT_ZERO * value as i128).to_ne_bytes())
}
}
impl fmt::Display for RocDec {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(self.to_str_helper(&mut ArrayString::new()))