aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
-rw-r--r--src/LexCPP.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 235d09261..8b4581529 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1798,7 +1798,7 @@ void Editor::NotifyChar(int ch) {
#ifdef MACRO_SUPPORT
if (recordingMacro) {
char txt[2];
- txt[0] = ch;
+ txt[0] = static_cast<char>(ch);
txt[1] = '\0';
NotifyMacroRecord(SCI_REPLACESEL, 0, reinterpret_cast<long>(txt));
}
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx
index b7ea9f47d..b1824615c 100644
--- a/src/LexCPP.cxx
+++ b/src/LexCPP.cxx
@@ -170,7 +170,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo
if (initStyle == SCE_C_STRINGEOL) // Does not leak onto next line
initStyle = SCE_C_DEFAULT;
- char chPrevNonWhite = ' ';
+ int chPrevNonWhite = ' ';
int visibleChars = 0;
bool lastWordWasUUID = false;
@@ -309,7 +309,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo
do {
cc.Forward();
} while (IsASpace(cc.ch) && cc.More());
- } else if (isoperator(cc.ch)) {
+ } else if (isoperator(static_cast<char>(cc.ch))) {
cc.SetState(SCE_C_OPERATOR);
}
}