uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 075747f2bdeba90fb0e2f7995e3c092ae69f3fa9
parent d12b948e828ffb9316723ef1bab38cfdbab6e90d
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Wed,  1 Mar 2023 19:24:18 +0000

Address compiler warning about switch case falling through.

Diffstat:
Msrc/uxn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/uxn.c b/src/uxn.c @@ -49,7 +49,7 @@ uxn_eval(Uxn *u, Uint16 pc) switch(opcode - (!opcode * (instr >> 5))) { /* Immediate */ case -0x0: /* BRK */ return 1; - case -0x1: /* JCI */ POP8(b) if(!b) { pc += 2; break; } + case -0x1: /* JCI */ POP8(b) if(!b) { pc += 2; break; } /* else fallthrough */ case -0x2: /* JMI */ pc += PEEK16(u->ram + pc) + 2; break; case -0x3: /* JSI */ s = u->rst; PUSH16(pc + 2) pc += PEEK16(u->ram + pc) + 2; break; case -0x4: /* LIT */