X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e126a0784c24166888759bbc96d65a59c062fa8..a6f4dbbd86b54c720bdeab1aea1fad5eb3f030e6:/contrib/samples/stc/edit.cpp diff --git a/contrib/samples/stc/edit.cpp b/contrib/samples/stc/edit.cpp index c9f53d0d84..44ce6f88c0 100644 --- a/contrib/samples/stc/edit.cpp +++ b/contrib/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') {