Fix warnings in visual studio (#3512)

This commit is contained in:
Jeffery Myers 2023-11-06 11:31:07 -08:00 • committed by GitHub
commit 6cd37e57a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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