From 64265d0b399f533995e5b60e85820d90873d91b6 Mon Sep 17 00:00:00 2001 From: cancel Date: Sun, 13 Jan 2019 00:17:43 +0900 Subject: [PATCH] Cleanup --- sim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sim.c b/sim.c index c3f9e63..59c38e4 100644 --- a/sim.c +++ b/sim.c @@ -434,7 +434,8 @@ BEGIN_OPERATOR(clock) Usz mod_num = index_of(PEEK(0, 1)); mod_num = (mod_num == 0) ? 10 : mod_num; Usz rate = index_of(PEEK(0, -1)); - rate = (rate == 0) ? 1 : rate; + if (rate == 0) + rate = 1; Glyph g = glyph_of(Tick_number / rate % mod_num); POKE(1, 0, g); END_OPERATOR