diff options
author | nyamatongwe <unknown> | 2010-07-23 11:45:09 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-07-23 11:45:09 +1000 |
commit | 48242c60b297fdcfb560e583e5c90002d013f581 (patch) | |
tree | 218407c21472ffdd8d42492149131ca3b08c847d | |
parent | 012f701e6baf9c1403c7a2f6d1cbb29b88c9296d (diff) | |
download | scintilla-mirror-48242c60b297fdcfb560e583e5c90002d013f581.tar.gz |
Casts to avoid compiler warnings.
-rw-r--r-- | lexers/LexBash.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lexers/LexBash.cxx b/lexers/LexBash.cxx index 987249dbc..7c06bdebb 100644 --- a/lexers/LexBash.cxx +++ b/lexers/LexBash.cxx @@ -223,7 +223,7 @@ static void ColouriseBashDoc(unsigned int startPos, int length, int initStyle, char s2[10]; sc.GetCurrent(s, sizeof(s)); // allow keywords ending in a whitespace or command delimiter - s2[0] = sc.ch; + s2[0] = static_cast<char>(sc.ch); s2[1] = '\0'; bool keywordEnds = IsASpace(sc.ch) || cmdDelimiter.InList(s2); // 'in' or 'do' may be construct keywords @@ -558,9 +558,9 @@ static void ColouriseBashDoc(unsigned int startPos, int length, int initStyle, || cmdState == BASH_CMD_BODY || cmdState == BASH_CMD_WORD || (cmdState == BASH_CMD_TEST && testExprType == 0)) { - s[0] = sc.ch; + s[0] = static_cast<char>(sc.ch); if (setBashOperator.Contains(sc.chNext)) { - s[1] = sc.chNext; + s[1] = static_cast<char>(sc.chNext); s[2] = '\0'; isCmdDelim = cmdDelimiter.InList(s); if (isCmdDelim) |