From 562c5d66595a67993ec8117de2be9e174493ed13 Mon Sep 17 00:00:00 2001 From: Braden Everson Date: Tue, 5 Mar 2024 07:37:23 -0600 Subject: [PATCH] Neg just adds to the queue as well for now --- src/core/graph/consteval.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/graph/consteval.rs b/src/core/graph/consteval.rs index 27f129d..bee16fa 100644 --- a/src/core/graph/consteval.rs +++ b/src/core/graph/consteval.rs @@ -300,7 +300,9 @@ impl Context { }, Operation::Neg(a) => { - //TODO + if let None = self.nodes[a].is_const() { + to_visit.push(a); + } } Operation::GreaterThan(a, b) | Operation::GreaterThanEq(a, b)