add max_steps to PStr offset (#2381)
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user