From 25ad390d8f64233a7441c9c8abf59e522d4e6de0 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Sat, 7 Feb 2026 02:14:00 +0100 Subject: [PATCH] fix(interpreter): wrong condition in indefinite for loop --- src/interpreter/interpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter/interpreter.py b/src/interpreter/interpreter.py index afac1fd..3585868 100644 --- a/src/interpreter/interpreter.py +++ b/src/interpreter/interpreter.py @@ -265,7 +265,7 @@ class Interpreter(Expr.Visitor[Any], Stmt.Visitor[None]): def condition() -> bool: if end_value is None: - return False + return True match (step_value < 0, inclusive): case (False, False): return value < end_value