We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fdf8ca commit 8427d4aCopy full SHA for 8427d4a
crates/c/src/lib.rs
@@ -2214,7 +2214,9 @@ impl Bindgen for FunctionBindgen<'_, '_> {
2214
Bitcast::I64ToP64 | Bitcast::P64ToI64 => {
2215
results.push(format!("{}", op));
2216
}
2217
- Bitcast::None => results.push(op.to_string()),
+ Bitcast::I32ToP | Bitcast::PToI32 | Bitcast::None => {
2218
+ results.push(op.to_string())
2219
+ }
2220
2221
2222
crates/teavm-java/src/lib.rs
@@ -1343,7 +1343,7 @@ impl Bindgen for FunctionBindgen<'_, '_> {
1343
Bitcast::P64ToI64 => format!("{op}"),
1344
Bitcast::PToP64 => format!("(long) ({op})"),
1345
Bitcast::P64ToP => format!("(int) ({op})"),
1346
- Bitcast::None => op.to_owned(),
+ Bitcast::I32ToP | Bitcast::PToI32 | Bitcast::None => op.to_owned(),
1347
}))
1348
1349
0 commit comments