From 48165edfad3469289c9c3fe88d19e082fba481ca Mon Sep 17 00:00:00 2001 From: xensik Date: Tue, 24 May 2022 20:10:26 +0200 Subject: [PATCH] t6: fix decompiler loop bug --- src/t6/xsk/decompiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/t6/xsk/decompiler.cpp b/src/t6/xsk/decompiler.cpp index 389bfd8a..9039b713 100644 --- a/src/t6/xsk/decompiler.cpp +++ b/src/t6/xsk/decompiler.cpp @@ -1307,12 +1307,12 @@ void decompiler::decompile_infinites(const ast::stmt_list::ptr& stmt) else if (stmt->list.at(start).as_node->kind() != ast::kind::asm_jump_cond) { decompile_infinite(stmt, start, i); - i = start; + i = stmt->list.size(); } else if (stmt->list.at(start).as_cond->value != break_loc) { decompile_infinite(stmt, start, i); - i = start; + i = stmt->list.size(); } else if (stmt->list.at(start).as_cond->value == break_loc) {