From 2d2ac3545a95405126395fba2c989188859c8e6e Mon Sep 17 00:00:00 2001 From: TheUltimateOptimist Date: Mon, 29 Jan 2024 02:48:57 +0100 Subject: [PATCH] refactoring: replaced 1 with true --- src/userinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/userinput.c b/src/userinput.c index 1079cc3..c944a1f 100644 --- a/src/userinput.c +++ b/src/userinput.c @@ -122,7 +122,7 @@ char *gets(char *message, unsigned long *minLength, unsigned long *maxLength) { } long double getNumber(char *message, long double *min, long double *max, long double *greaterThan, long double *smallerThan, long double leftBorder, long double rightBorder) { - while (1) { + while (true) { char *input = gets(message, NULL, NULL); if (strlen(input) == 0) { printText("Fehlende Eingabe!\n");