From 3eb9a6b5dc8387ec9df3288ee5554815061c224b Mon Sep 17 00:00:00 2001 From: Kevin Schellberg Date: Tue, 6 Feb 2024 12:46:36 +0100 Subject: [PATCH] refactoring: Refactoring8 --- build/test/out/c/quizduell.o | Bin 13570 -> 13570 bytes build/test/out/test_quizduell.out | Bin 131548 -> 131548 bytes build/test/results/test_casualQuiz.pass | 2 +- build/test/results/test_quizduell.pass | 2 +- build/test/results/test_timequiz.pass | 2 +- build/test/results/test_wwm.pass | 2 +- src/quizduell.c | 2 +- 7 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index f81291b2be0839e2554ffa57e3944cb518823c94..9548522553e9078e9af044364840301623eb41c0 100644 GIT binary patch delta 39 vcmZq5YRcNc%)unUIGL4W0;9<0X&n2wc~mWn8JzQric*tH6gMY`EK&df;o=Lw delta 39 tcmZq5YRcNc%)!LKFqxHO0;9m@X&n2wd7Sf$ic*tH6d8bEbAres1pwZD3fTYv diff --git a/build/test/out/test_quizduell.out b/build/test/out/test_quizduell.out index 057d583984175b96693715b8fd65187622dadfcc..4e81ed000ab9dffbaafa80a9c89a7e97b1f2b11e 100644 GIT binary patch delta 56 zcmV-80LTB_g9zM%2#|;Y;gN|?0?|9M+T~ON%}JBNRgeKcvr<+*Hw+~?a{xnca&l#3 ObRmPBjklbQ0YG%YRTp*u delta 56 zcmcc9%yFlgV?qbxnu(qMOib@K-g+9swAW+u!O#he)|-RE?96$b^NWg7lS>pCfS`F! L@Af&pj1DCLt5X&~ diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 8cbf9ab..4a3f5f8 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.01942100000451319 +:time: 0.019236000021919608 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 9aee039..217de4b 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.02023269998608157 +:time: 0.04335140000330284 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index d0fbaa1..2b27e48 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.018594499997561797 +:time: 0.01822980001452379 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index b95728e..0bb492c 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.018404699978418648 +:time: 0.018483799998648465 diff --git a/src/quizduell.c b/src/quizduell.c index c8e6863..7e6f709 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -21,7 +21,7 @@ QuizFrage erstelleFrage(const char* frage, const char* antwortA, const char* ant } int spieleKategorie(Kategorie* kategorie) { - int punktzahl = 0; + size_t punktzahl = 0; int jokerVerwendet = 0; for (int i = 0; i < kategorie->anzahlFragen; i++) {