summaryrefslogtreecommitdiff
path: root/src/mods/ir.zig
diff options
context:
space:
mode:
authorErnesto Lanchares <elancha98@proton.me>2025-03-30 14:36:51 +0200
committerErnesto Lanchares <elancha98@proton.me>2025-03-30 14:36:51 +0200
commit237ead3921ff7e1766425eb4a16470591d5babb0 (patch)
tree38aad33f973214938308d1b3f0c0a189951eda54 /src/mods/ir.zig
parent9ff5e811a8642c59556df077b0c258f1af083480 (diff)
Fixed an error during ir parsing.
Diffstat (limited to 'src/mods/ir.zig')
-rw-r--r--src/mods/ir.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mods/ir.zig b/src/mods/ir.zig
index e745cb8..91e0eaf 100644
--- a/src/mods/ir.zig
+++ b/src/mods/ir.zig
@@ -764,7 +764,7 @@ const IRParserState = struct {
var it = self.branches.iterator();
while (it.next()) |branch| {
- if (start < branch.key_ptr.* and branch.key_ptr.* < end) {
+ if (start <= branch.key_ptr.* and branch.key_ptr.* <= end) {
if (branch.value_ptr.* == 0) {
self.indices.items[branch.key_ptr.*].u32 = jump_addr;
try todel.append(self.allocator, branch.key_ptr.*);