core/classes: Fix incorrect pointers of range.{stop,step}

This commit is contained in:
David Mak 2024-06-11 15:12:32 +08:00
parent 3acdfb304d
commit 181ac3ec1a
1 changed files with 2 additions and 2 deletions

View File

@ -890,7 +890,7 @@ impl<'ctx> RangeValue<'ctx> {
) {
debug_assert_eq!(end.get_type().get_bit_width(), 32);
let pend = self.ptr_to_start(ctx);
let pend = self.ptr_to_end(ctx);
ctx.builder.build_store(pend, end).unwrap();
}
@ -915,7 +915,7 @@ impl<'ctx> RangeValue<'ctx> {
) {
debug_assert_eq!(step.get_type().get_bit_width(), 32);
let pstep = self.ptr_to_start(ctx);
let pstep = self.ptr_to_step(ctx);
ctx.builder.build_store(pstep, step).unwrap();
}