From bb39ce97c7900ee17c83f98866d0ee1e17e8f424 Mon Sep 17 00:00:00 2001 From: Peter Schorn Date: Sat, 8 Aug 2015 08:58:24 +0200 Subject: [PATCH] AltairZ80: Better comparison operator to remove warning message --- AltairZ80/altairz80_cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AltairZ80/altairz80_cpu.c b/AltairZ80/altairz80_cpu.c index e51bb1a3..f708dd7d 100644 --- a/AltairZ80/altairz80_cpu.c +++ b/AltairZ80/altairz80_cpu.c @@ -2056,7 +2056,7 @@ void setClockFrequency(const uint32 Value) { void pollForCPUStop(void) { static uint32 pollCounter = INITIAL_POLL_COUNTER; - if (--pollCounter <= 0) { + if (--pollCounter == 0) { pollCounter = INITIAL_POLL_COUNTER; sim_poll_kbd(); /* the following sim_process_event will check for stop */ }