aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexConf.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-01-28 06:16:08 +0000
committernyamatongwe <unknown>2001-01-28 06:16:08 +0000
commit6cc47f75fb2bf23cc3f733faa48886990cc1f041 (patch)
tree242b2f93af7163567f8c0cdb5927ec32fbd2e512 /src/LexConf.cxx
parentc015a7bf7b15f3ea21b3a4c3ddb3c2f96bb54c9a (diff)
downloadscintilla-mirror-6cc47f75fb2bf23cc3f733faa48886990cc1f041.tar.gz
Added static_cast to hush Borland C++.
Diffstat (limited to 'src/LexConf.cxx')
-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';