Skip to content

Commit

Permalink
Update segment used offsets with output size. (#1681)
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro Fontana <[email protected]>
  • Loading branch information
Alon-Ti and pefontana authored Mar 20, 2024
1 parent 16a844e commit 0b6d116
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vm/src/vm/vm_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,10 @@ impl VirtualMachine {
#[doc(hidden)]
pub fn set_output_stop_ptr_offset(&mut self, offset: usize) {
if let Some(BuiltinRunner::Output(builtin)) = self.builtin_runners.first_mut() {
builtin.set_stop_ptr_offset(offset)
builtin.set_stop_ptr_offset(offset);
if let Some(segment_used_sizes) = &mut self.segments.segment_used_sizes {
segment_used_sizes[builtin.base()] = offset;
}
}
}
}
Expand Down

0 comments on commit 0b6d116

Please sign in to comment.