all repos — mgba @ 9f370be824bae63978f3c90e2598fc888f662162

mGBA Game Boy Advance Emulator

Test: Clamp job count
Vicki Pfau vi@endrift.com
Fri, 17 Jul 2020 02:55:27 -0700
commit

9f370be824bae63978f3c90e2598fc888f662162

parent

ee50cc7656dfdffebbb168fe235a5227d435255c

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M src/platform/test/cinema-main.csrc/platform/test/cinema-main.c

@@ -210,6 +210,12 @@ showUsage = true;

break; case 'j': jobs = atoi(optarg); + if (jobs > MAX_JOBS) { + jobs = MAX_JOBS; + } + if (jobs < 1) { + jobs = 1; + } break; case 'n': dryRun = true;