From cb4a76a55bc69d04ce0b6e39dd5d0612a16856aa Mon Sep 17 00:00:00 2001 From: spookydonut Date: Sun, 12 Jan 2020 22:24:02 +0800 Subject: [PATCH] stupid negative steps --- src/dreammaker/ast.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/dreammaker/ast.rs b/src/dreammaker/ast.rs index 9b229f4a..48ccca20 100644 --- a/src/dreammaker/ast.rs +++ b/src/dreammaker/ast.rs @@ -594,13 +594,11 @@ impl Term { } if let Some(stepexp) = step { if let Some(stepterm) = stepexp.as_term() { - if let Term::Int(s) = stepterm { - if *s < 0 { - return Some(*i >= *o) - } else if *s == 0 { - return Some(false) - } + if let Term::Int(_s) = stepterm { + return Some(true) } + } else { + return Some(true) } } return Some(*i <= *o)