Procházet zdrojové kódy

Minor formating tweak

Ray před 3 roky
rodič
revize
fc6742a5fe
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/raygui.h

+ 1 - 1
src/raygui.h

@@ -2355,7 +2355,7 @@ bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool editMode)
                     {
                     {
                         // Remove latest UTF-8 unicode character introduced (n bytes)
                         // Remove latest UTF-8 unicode character introduced (n bytes)
                         int charUTF8Length = 0;
                         int charUTF8Length = 0;
-                        while (charUTF8Length < textLength && ((unsigned char)text[textLength - 1 - charUTF8Length] & 0b01000000) == 0) charUTF8Length++;
+                        while ((charUTF8Length < textLength) && ((unsigned char)text[textLength - 1 - charUTF8Length] & 0b01000000) == 0) charUTF8Length++;
 
 
                         textLength -= (charUTF8Length + 1);
                         textLength -= (charUTF8Length + 1);
                         text[textLength] = '\0';
                         text[textLength] = '\0';