summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--examples/shapes/raygui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/shapes/raygui.h b/examples/shapes/raygui.h
index 112370ac..ea95e5c8 100644
--- a/examples/shapes/raygui.h
+++ b/examples/shapes/raygui.h
@@ -3743,7 +3743,7 @@ static int GetTextWidth(const char *text)
{
if (text[0] == '#')
{
- for (int i = 1; (text[i] != '\0') && (i < 5); i++)
+ for (int i = 1; (i < 5) && (text[i] != '\0'); i++)
{
if (text[i] == '#')
{