correct offset retrieval in add_pstr_chars_and_step (#2370)
This commit is contained in:
@@ -278,7 +278,8 @@ impl BrentAlgState {
|
|||||||
) -> Option<CycleSearchResult> {
|
) -> Option<CycleSearchResult> {
|
||||||
read_heap_cell!(heap[h],
|
read_heap_cell!(heap[h],
|
||||||
(HeapCellValueTag::PStrOffset, l) => {
|
(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)
|
self.add_pstr_offset_chars(heap, pstr_loc, offset.get_num() as usize)
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
|||||||
Reference in New Issue
Block a user