diff options
author | Ernesto Lanchares <elancha98@proton.me> | 2025-03-30 14:36:51 +0200 |
---|---|---|
committer | Ernesto Lanchares <elancha98@proton.me> | 2025-03-30 14:36:51 +0200 |
commit | 237ead3921ff7e1766425eb4a16470591d5babb0 (patch) | |
tree | 38aad33f973214938308d1b3f0c0a189951eda54 /src/mods/ir.zig | |
parent | 9ff5e811a8642c59556df077b0c258f1af083480 (diff) |
Fixed an error during ir parsing.
Diffstat (limited to 'src/mods/ir.zig')
-rw-r--r-- | src/mods/ir.zig | 2 |
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.*); |