From 8078e7f897aaae9b492b22475060052d68b9c547 Mon Sep 17 00:00:00 2001
From: Ash Wolf <ninji@wuffs.org>
Date: Sat, 14 Jan 2023 19:11:33 +0000
Subject: compiler can now recompile itself

---
 compiler_and_linker/unsorted/Switch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'compiler_and_linker')

diff --git a/compiler_and_linker/unsorted/Switch.c b/compiler_and_linker/unsorted/Switch.c
index e0c99a0..23cc02b 100644
--- a/compiler_and_linker/unsorted/Switch.c
+++ b/compiler_and_linker/unsorted/Switch.c
@@ -297,7 +297,7 @@ static void I8_treecompare(SInt32 start, SInt32 end) {
                 d = b;
             }
             emitpcode(PC_SUBFC, a, a, selector_gpr);
-            emitpcode(PC_SUBFE, b, d, b);
+            emitpcode(PC_SUBFE, b, d, c);
             emitpcode(PC_SUBFE, b, a, a);
             emitpcode(PC_NEG, b, b);
             emitpcode(PC_CMPI, 0, b, 0);
-- 
cgit v1.2.3