Skip to content

Commit

Permalink
Small bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FractalFir committed Jul 18, 2024
1 parent 78fb434 commit 3be914f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cilly/src/c_exporter/method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,14 +362,14 @@ fn node_code(method: &Method, node: &crate::cil_node::CILNode) -> IString {
if val.is_nan() {
"NAN".into()
} else {
format!("{val:?}f").into()
format!("{:?}f", val.0).into()
}
}
CILNode::LdcF64(val) => {
if val.is_nan() {
"NAN".into()
} else {
format!("{val:?}").into()
format!("{:?}", val.0).into()
}
}
CILNode::SizeOf(tpe) => format!("sizeof({tpe})", tpe = c_tpe(tpe)).into(),
Expand Down

0 comments on commit 3be914f

Please sign in to comment.