From ff03432624195b3530c8fe8d99f19dc6d988ad64 Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Thu, 14 Nov 2024 22:39:56 -0700 Subject: [PATCH] admit YF in current_op/3 (#2639) --- src/machine/system_calls.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/machine/system_calls.rs b/src/machine/system_calls.rs index 752ae6b4..24798919 100644 --- a/src/machine/system_calls.rs +++ b/src/machine/system_calls.rs @@ -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 }; -- 2.54.0