From a3fbf1bc739907acba3ac5688ddd78a2cc8676fd Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Mon, 14 Aug 2017 10:11:17 -0600 Subject: [PATCH] generalize has_null_ball --- src/prolog/machine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prolog/machine.rs b/src/prolog/machine.rs index 04077fe2..53cb6ab7 100644 --- a/src/prolog/machine.rs +++ b/src/prolog/machine.rs @@ -1148,7 +1148,7 @@ impl MachineState { fn has_null_ball(&self) -> bool { - if let &Addr::Con(Constant::UInt64(0)) = &self.ball { + if let &Addr::Con(Constant::UInt64(_)) = &self.ball { true } else { false -- 2.54.0