Add initial conflict resolution

This commit is contained in:
hal8174 2024-01-02 15:45:00 +01:00
parent ce3a890237
commit 68d0f64058
3 changed files with 153 additions and 1 deletions

View file

@ -129,7 +129,7 @@ pub struct Bruteforce {
impl Bruteforce {
pub fn modify_pointer(&self) -> usize {
self.pointer_stack
.get(self.pointer_stack.len() - 2)
.get(self.pointer_stack.len().saturating_sub(2))
.copied()
.unwrap_or(0)
}