add max_steps to PStr offset (#2381)

This commit is contained in:
Mark Thom
2024-04-09 18:40:08 -06:00
parent 77e90ca725
commit 238343f389

View File

@@ -433,7 +433,8 @@ impl BrentAlgState {
return if pstr_chars < max_steps { return if pstr_chars < max_steps {
CycleSearchResult::ProperList(pstr_chars + 1) CycleSearchResult::ProperList(pstr_chars + 1)
} else { } else {
CycleSearchResult::PStrLocation(max_steps, h_offset, n) let offset = max_steps as usize + n;
CycleSearchResult::PStrLocation(max_steps, h_offset, offset)
} }
} }
} }