Comparison is always false because keyCount >= 0 (#201)

This commit is contained in:
Crydsch 2022-05-21 11:48:39 +02:00 committed by GitHub
parent 9554ca8d63
commit 486bc9b5e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}