diff options
author | nyamatongwe <unknown> | 2001-02-17 10:40:09 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-02-17 10:40:09 +0000 |
commit | e08f76c40c66a8e9190d79cf8d38173fd1fe37b7 (patch) | |
tree | 82618e57933d9200afe8206d69e3ca3aaebb8e6b | |
parent | f5a6397a8db8cc22692ea8ec301da05bee2dc291 (diff) | |
download | scintilla-mirror-e08f76c40c66a8e9190d79cf8d38173fd1fe37b7.tar.gz |
Fixed some warnings from Borland.
-rw-r--r-- | src/LexAVE.cxx | 2 | ||||
-rw-r--r-- | src/PropSet.cxx | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/LexAVE.cxx b/src/LexAVE.cxx index 6bfced6e4..6382f6cf7 100644 --- a/src/LexAVE.cxx +++ b/src/LexAVE.cxx @@ -32,7 +32,6 @@ static void ColouriseAveDoc(unsigned int startPos, int length, int initStyle, Wo int state = initStyle; if (state == SCE_AVE_STRINGEOL) // Does not leak onto next line state = SCE_AVE_DEFAULT; - char chPrev = ' '; char chNext = styler[startPos]; unsigned int lengthDoc = startPos + length; int visibleChars = 0; @@ -65,7 +64,6 @@ static void ColouriseAveDoc(unsigned int startPos, int length, int initStyle, Wo visibleChars++; if (styler.IsLeadByte(ch)) { chNext = styler.SafeGetCharAt(i + 2); - chPrev = ' '; i += 1; continue; } diff --git a/src/PropSet.cxx b/src/PropSet.cxx index 45419bcd1..aa7423cbc 100644 --- a/src/PropSet.cxx +++ b/src/PropSet.cxx @@ -21,7 +21,7 @@ inline char MakeUpperCase(char ch) { if (ch < 'a' || ch > 'z') return ch; else - return ch - 'a' + 'A'; + return static_cast<char>(ch - 'a' + 'A'); } int CompareCaseInsensitive(const char *a, const char *b) { |