Skip to content

Commit

Permalink
fix compare_pstr_to_string (mthom#2148)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthom committed Nov 5, 2023
1 parent da0018e commit 2dd1f6e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/machine/partial_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub struct HeapPStrIter<'a> {
stepper: fn(&mut HeapPStrIter<'a>) -> Option<PStrIteratee>,
}

#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
pub struct PStrPrefixCmpResult {
pub focus: usize,
pub offset: usize,
Expand Down Expand Up @@ -193,7 +193,7 @@ impl<'a> HeapPStrIter<'a> {
}
}

final_result
Some(result)
}

fn walk_hare_to_cycle_end(&mut self) {
Expand Down Expand Up @@ -336,9 +336,9 @@ impl<'a> HeapPStrIter<'a> {
);

return value.as_char().map(|c| PStrIterStep {
iteratee: PStrIteratee::Char(curr_hare, c),
next_hare: h+1,
});
iteratee: PStrIteratee::Char(curr_hare, c),
next_hare: h+1,
});
}
(HeapCellValueTag::Str, s) => {
let (name, arity) = cell_as_atom_cell!(self.heap[s])
Expand Down

0 comments on commit 2dd1f6e

Please sign in to comment.