Skip to content

Commit 75ef027

Browse files
Update main.rs
Fix error
1 parent c13b5b6 commit 75ef027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1156,9 +1156,9 @@ impl Executor {
11561156
let mut range: Vec<Type> = Vec::new();
11571157
let mut i = min;
11581158

1159-
while i < max {
1159+
while i.to_f64() < max.to_f64() {
11601160
range.push(Type::Number(i));
1161-
i += step;
1161+
i = step + i;
11621162
}
11631163

11641164
self.stack.push(Type::List(range));

0 commit comments

Comments
 (0)