Skip to content

Commit

Permalink
correct offset retrieval in add_pstr_chars_and_step (#2030)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthom committed Mar 25, 2024
1 parent 2fdbb94 commit 8d0f6a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/machine/system_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ impl BrentAlgState {
) -> Option<CycleSearchResult> {
read_heap_cell!(heap[h],
(HeapCellValueTag::PStrOffset, l) => {
let (pstr_loc, offset) = pstr_loc_and_offset(heap, l);
let (pstr_loc, _) = pstr_loc_and_offset(heap, l);
let offset = cell_as_fixnum!(heap[h+1]);
self.add_pstr_offset_chars(heap, pstr_loc, offset.get_num() as usize)
}
_ => {
Expand Down

0 comments on commit 8d0f6a5

Please sign in to comment.