diff --git a/src/prolog/ast.rs b/src/prolog/ast.rs index 721ec05d..5fac17a5 100644 --- a/src/prolog/ast.rs +++ b/src/prolog/ast.rs @@ -1504,8 +1504,8 @@ impl PartialOrd for Addr { }, &Addr::HeapCell(h) => match r { - Ref::StackCell(..) => Some(Ordering::Less), - Ref::HeapCell(h1) => h.partial_cmp(h1) + &Ref::StackCell(..) => Some(Ordering::Less), + &Ref::HeapCell(h1) => h.partial_cmp(&h1) }, _ => None }