Skip to content

Commit

Permalink
Improvements to test-Z80.
Browse files Browse the repository at this point in the history
  • Loading branch information
redcode committed Jul 27, 2023
1 parent 2de8b80 commit a9144d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/test-Z80.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a9144d7

Please sign in to comment.