From e61683d37629a95ffa46eda7a7be2c8ef6906bce Mon Sep 17 00:00:00 2001 From: Crydsch Date: Sat, 14 May 2022 11:55:49 +0200 Subject: [PATCH] Comparison is always false because keyCount >= 0 --- src/extras/raygui.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/extras/raygui.h b/src/extras/raygui.h index dfb7792c4..d588279cd 100644 --- a/src/extras/raygui.h +++ b/src/extras/raygui.h @@ -1999,7 +1999,6 @@ bool GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode) { keyCount--; text[keyCount] = '\0'; - if (keyCount < 0) keyCount = 0; } } @@ -2177,7 +2176,6 @@ bool GuiValueBox(Rectangle bounds, const char *text, int *value, int minValue, i { keyCount--; textValue[keyCount] = '\0'; - if (keyCount < 0) keyCount = 0; valueHasChanged = true; } }