From 365c9ba4e223bd42e3e34839caaf4eb41c33c83a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 16 Feb 2024 15:38:54 +0100 Subject: Make i a size_t --- src/ahoy/emulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ahoy/emulator.c b/src/ahoy/emulator.c index ff7f97d..749e3a2 100644 --- a/src/ahoy/emulator.c +++ b/src/ahoy/emulator.c @@ -252,7 +252,7 @@ opexec(uint16_t op) static bool any_key_pressed = false; static uint8_t key = 0xFF; - for (uint8_t i = 0; key == 0xFF && i < lengthof(c8.kbd); i++) { + for (size_t i = 0; key == 0xFF && i < lengthof(c8.kbd); i++) { if (c8.kbd[i]) { key = i; any_key_pressed = true; -- cgit v1.2.3