From 0beea085711b8f3eb3748bc078ab2c1d4c78d547 Mon Sep 17 00:00:00 2001 From: Celeste Date: Sat, 29 Jan 2022 11:08:41 +0000 Subject: [PATCH] issue quick patch for a stupid issue i didn't catch --- Cargo.toml | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index db96969..d991ce3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lintc" -version = "0.2.2" +version = "0.2.3" edition = "2021" build = "build.rs" diff --git a/src/main.rs b/src/main.rs index 74f899c..171db3b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -154,7 +154,7 @@ fn parse(code: String) -> String { i = i + 1; } } - blocks[3].push_str(&format!("LIT {} .{} STZ\n", value[1], counter.to_string())); + blocks[3].push_str(&format!("LIT {} .{} STZ\n", value[1], i.to_string())); } println!("Assigned value to variable {}.", value[0]); } else if line.contains(";;") {