scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 780603b37374b368f65f10c26d7622a243781519
parent ae3e85c7ba2336037b6fed534e732b3b43934698
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 25 Dec 2024 19:43:42 +0100

cc1: Fix OELOOP and OBLOOP

These values were interchanged.

Diffstat:
Msrc/cmd/scc-cc/cc1/code.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cmd/scc-cc/cc1/code.c b/src/cmd/scc-cc/cc1/code.c @@ -66,8 +66,8 @@ char *optxt[] = { [OJUMP] = "\tj\tL%d\n", [OBRANCH] = "\ty\tL%d", [OEFUN] = "}\n", - [OELOOP] = "\tb\n", - [OBLOOP] = "\te\n", + [OELOOP] = "\te\n", + [OBLOOP] = "\tb\n", [ORET] = "\th", [OPAR] = "p", [OCALL] = "c",