mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-04 00:54:36 +00:00
make llvm tests work again
This commit is contained in:
parent
59af059912
commit
5ca3d3bcf1
13 changed files with 244 additions and 132 deletions
|
@ -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()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue