Fixed an error during ir parsing.

This commit is contained in:
Ernesto Lanchares 2025-03-30 14:36:51 +02:00
parent 9ff5e811a8
commit 237ead3921

View file

@ -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.*);