From 8e395cc6e98aecf156591f8f99444d9b1f5ed87c Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Wed, 13 Dec 2023 20:08:26 +0100 Subject: [PATCH] Fixed crash in `core:odin/parser` with `#reverse` --- core/odin/parser/parser.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/odin/parser/parser.odin b/core/odin/parser/parser.odin index 39bd77055..f11d0eb73 100644 --- a/core/odin/parser/parser.odin +++ b/core/odin/parser/parser.odin @@ -1438,7 +1438,7 @@ parse_stmt :: proc(p: ^Parser) -> ^ast.Stmt { } range.reverse = true } else { - error(p, range.pos, "#reverse can only be applied to a 'for in' statement") + error(p, stmt.pos, "#reverse can only be applied to a 'for in' statement") } return stmt case "include":