Skip to content

Commit

Permalink
Implement Bitcast::I32ToP and PToI32 in more backends.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Feb 27, 2024
1 parent 7fdf8ca commit 8427d4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion crates/c/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2214,7 +2214,9 @@ impl Bindgen for FunctionBindgen<'_, '_> {
Bitcast::I64ToP64 | Bitcast::P64ToI64 => {
results.push(format!("{}", op));
}
Bitcast::None => results.push(op.to_string()),
Bitcast::I32ToP | Bitcast::PToI32 | Bitcast::None => {
results.push(op.to_string())
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/teavm-java/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ impl Bindgen for FunctionBindgen<'_, '_> {
Bitcast::P64ToI64 => format!("{op}"),
Bitcast::PToP64 => format!("(long) ({op})"),
Bitcast::P64ToP => format!("(int) ({op})"),
Bitcast::None => op.to_owned(),
Bitcast::I32ToP | Bitcast::PToI32 | Bitcast::None => op.to_owned(),
}))
}

Expand Down

0 comments on commit 8427d4a

Please sign in to comment.