From 486bc9b5e300b4d5bc1a8f45ea04fe934c7806d0 Mon Sep 17 00:00:00 2001 From: Crydsch Date: Sat, 21 May 2022 11:48:39 +0200 Subject: [PATCH] Comparison is always false because keyCount >= 0 (#201) --- src/raygui.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index a2577a2..9fb03d0 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -2048,7 +2048,6 @@ bool GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode) { keyCount--; text[keyCount] = '\0'; - if (keyCount < 0) keyCount = 0; } } @@ -2226,7 +2225,6 @@ bool GuiValueBox(Rectangle bounds, const char *text, int *value, int minValue, i { keyCount--; textValue[keyCount] = '\0'; - if (keyCount < 0) keyCount = 0; valueHasChanged = true; } }