Skip to content

Commit

Permalink
fix(frontend): mistyped pointer offset immediate
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwalker committed May 14, 2024
1 parent 239b711 commit 44e30d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend-wasm/src/miden_abi/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub fn return_via_pointer(
// expected to be +8 from the first and so on. So we need to
// multiply the index by 8 so that the subsequent Rust code finds
// the values in the expected locations.
let imm = Immediate::I32(idx as i32 * 8);
let imm = Immediate::U32(idx as u32 * 8);
builder.ins().add_imm_checked(ptr_u32, imm, span)
};
let value_ty = builder.data_flow_graph().value_type(*value).clone();
Expand Down

0 comments on commit 44e30d1

Please sign in to comment.