浏览代码

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

Crydsch 3 年之前
父节点
当前提交
486bc9b5e3
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/raygui.h

+ 0 - 2
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;
                 }
             }