Skip to content

Commit

Permalink
Fix div.
Browse files Browse the repository at this point in the history
  • Loading branch information
ptersilie committed Nov 12, 2024
1 parent 1bc2891 commit fcd97bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ykrt/src/compile/jitc_yk/trace_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl TraceBuilder {
aot_ir::Ty::Integer(it) => it.num_bits(),
_ => unreachable!(),
};
let width_bytes = usize::try_from(width_bits).unwrap() / 8;
let width_bytes = usize::try_from(width_bits.div_ceil(8)).unwrap();
self.promote_idx += width_bytes;
}
_ => (),
Expand Down

0 comments on commit fcd97bc

Please sign in to comment.