fix compare/3 (#1327)
This commit is contained in:
@@ -58,12 +58,11 @@ impl MachineState {
|
|||||||
let a3 = self.registers[3];
|
let a3 = self.registers[3];
|
||||||
|
|
||||||
read_heap_cell!(a1,
|
read_heap_cell!(a1,
|
||||||
(HeapCellValueTag::Str, s) => {
|
(HeapCellValueTag::Atom, (name, arity)) => {
|
||||||
let (name, arity) = cell_as_atom_cell!(self.heap[s])
|
debug_assert_eq!(arity, 0);
|
||||||
.get_name_and_arity();
|
|
||||||
|
|
||||||
match name {
|
match name {
|
||||||
atom!(">") | atom!("<") | atom!("=") if arity == 2 => {
|
atom!(">") | atom!("<") | atom!("=") => {
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
let err = self.domain_error(DomainErrorType::Order, a1);
|
let err = self.domain_error(DomainErrorType::Order, a1);
|
||||||
|
|||||||
Reference in New Issue
Block a user