X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e126a0784c24166888759bbc96d65a59c062fa8..ff38d8c1ebb74788dd8c61c88183a31832927347:/samples/stc/edit.cpp?ds=sidebyside diff --git a/samples/stc/edit.cpp b/samples/stc/edit.cpp index c9f53d0d84..44ce6f88c0 100644 --- a/samples/stc/edit.cpp +++ b/samples/stc/edit.cpp @@ -339,7 +339,7 @@ void Edit::OnMarginClick (wxStyledTextEvent &event) { } void Edit::OnCharAdded (wxStyledTextEvent &event) { - char chr = event.GetKey(); + char chr = (char)event.GetKey(); int currentLine = GetCurrentLine(); // Change this if support for mac files with \r is needed if (chr == '\n') {