diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index b0c7272..4a25d86 100644 Binary files a/build/test/out/c/quizduell.o and b/build/test/out/c/quizduell.o differ diff --git a/build/test/out/test_quizduell.out b/build/test/out/test_quizduell.out index 5e3825f..e00491b 100644 Binary files a/build/test/out/test_quizduell.out and b/build/test/out/test_quizduell.out differ diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index b8eee11..f60eb2d 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.022334299981594086 +:time: 0.025510799983749166 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index aa4b0ee..4428cd2 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -51,4 +51,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.039953699975740165 +:time: 0.045171999983722344 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 9c3c852..103c5e2 100644 --- a/build/test/results/test_timequiz.pass +++ b/build/test/results/test_timequiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.02081809999071993 +:time: 0.02026409999234602 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index eb16a2d..937bea4 100644 --- a/build/test/results/test_wwm.pass +++ b/build/test/results/test_wwm.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.019612700009020045 +:time: 0.020749499992234632 diff --git a/src/quizduell.c b/src/quizduell.c index cf3aa2c..c0cc856 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -169,7 +169,8 @@ void quizduell() { if (scanf("%s", auswahl) != 1) { } - int auswahlIndex = -1; + typedef int CategoryIndex; + CategoryIndex auswahlIndex = -1; for (int i = 0; i < MAX_CATEGORIES; i++) { if (kategorien[i].fragen != NULL && strcmp(auswahl, "Mountains") == 0) {