From a2726c8600058cf2b1e6a2660d6d26312b0df424 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 8 Nov 2023 19:35:05 +0100 Subject: [PATCH] Update raygui.h --- src/raygui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raygui.h b/src/raygui.h index 4ae0a26..9127710 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -2653,7 +2653,7 @@ int GuiTextBox(Rectangle bounds, char *text, int bufferSize, bool editMode) if (GetMousePosition().x >= (textBounds.x + textEndWidth - glyphWidth/2)) { mouseCursor.x = textBounds.x + textEndWidth; - mouseCursorIndex = strlen(text); + mouseCursorIndex = (int)strlen(text); } // Place cursor at required index on mouse click