From a9144d78a2f1a63244655df1b249c113139ee5b9 Mon Sep 17 00:00:00 2001 From: redcode Date: Thu, 27 Jul 2023 03:20:59 +0200 Subject: [PATCH] Improvements to `test-Z80`. --- sources/test-Z80.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/test-Z80.c b/sources/test-Z80.c index 8f7922b..70c6a0a 100644 --- a/sources/test-Z80.c +++ b/sources/test-Z80.c @@ -835,7 +835,7 @@ int main(int argc, char **argv) break; } - if (j == 4) + if (j == Z_ARRAY_SIZE(cpu_models)) { invalid = "CPU model"; goto invalid_argument;