aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-01-28 06:16:08 +0000
committernyamatongwe <devnull@localhost>2001-01-28 06:16:08 +0000
commit1f068dd60161e0396975dccbb55da7a6e530b32e (patch)
tree242b2f93af7163567f8c0cdb5927ec32fbd2e512
parentaf49e8472930bf56d319a0ef8474e28d1b719bcd (diff)
downloadscintilla-mirror-1f068dd60161e0396975dccbb55da7a6e530b32e.tar.gz
Added static_cast to hush Borland C++.
-rw-r--r--src/LexConf.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LexConf.cxx b/src/LexConf.cxx
index 5a016e4b1..f3578428e 100644
--- a/src/LexConf.cxx
+++ b/src/LexConf.cxx
@@ -76,7 +76,7 @@ static void ColouriseConfDoc(unsigned int startPos, int length, int, WordList *k
} else if( isalpha(ch) ) {
// signals the start of an identifier
bufferCount = 0;
- buffer[bufferCount++] = tolower(ch);
+ buffer[bufferCount++] = static_cast<char>(tolower(ch));
state = SCE_CONF_IDENTIFIER;
} else if( isdigit(ch) ) {
// signals the start of a number
@@ -128,7 +128,7 @@ static void ColouriseConfDoc(unsigned int startPos, int length, int, WordList *k
case SCE_CONF_IDENTIFIER:
// stay in CONF_IDENTIFIER state until we find a non-alphanumeric
if( isalnum(ch) || (ch == '_') || (ch == '-') || (ch == '/') || (ch == '$') || (ch == '.') || (ch == '*')) {
- buffer[bufferCount++] = tolower(ch);
+ buffer[bufferCount++] = static_cast<char>(tolower(ch));
} else {
state = SCE_CONF_DEFAULT;
buffer[bufferCount] = '\0';