Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit c81f884

Browse files
committed
Added a static cast here to clean up a warning message
1 parent 9ec6c99 commit c81f884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GUI/GUITextPanel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ void GUITextPanel::OnKeyPress(int KeyCode, int Modifier)
389389
if (KeyCode >= 32 && KeyCode < 128) {
390390
RemoveSelectionText();
391391

392-
char buf[2] = {KeyCode, '\0'};
392+
char buf[2] = {static_cast<char>(KeyCode), '\0'};
393393

394394
// Insert the text
395395
m_Text.insert(m_CursorIndex, buf);

0 commit comments

Comments
 (0)