Skip to content

Commit

Permalink
admit YF in current_op/3 (#2639)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthom committed Nov 15, 2024
1 parent 7fd4091 commit ff03432
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/machine/system_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4026,12 +4026,7 @@ impl Machine {
let orig_op = self.deref_register(3);

let spec_num = if spec.get_tag() == HeapCellValueTag::Atom {
Some(
OpDeclSpec::try_from(cell_as_atom!(spec))
.ok()
.filter(|spec| matches!(spec, XFX | XFY | YFX | FX | FY | XF))
.expect("we should only get valid values != YF here"),
)
OpDeclSpec::try_from(cell_as_atom!(spec)).ok()
} else {
None
};
Expand Down

0 comments on commit ff03432

Please sign in to comment.