aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexBash.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-07-23 11:45:09 +1000
committernyamatongwe <devnull@localhost>2010-07-23 11:45:09 +1000
commit19b9b96f30b6c2d3910ba8abed6befceb49e4fff (patch)
treebc4b8124be7bbe5f9d650eed6515b6122c208e5d /lexers/LexBash.cxx
parentcb87c9a1b0efb8d32048d3a0cb756b6794c66b47 (diff)
downloadscintilla-mirror-19b9b96f30b6c2d3910ba8abed6befceb49e4fff.tar.gz
Casts to avoid compiler warnings.
Diffstat (limited to 'lexers/LexBash.cxx')
-rw-r--r--lexers/LexBash.cxx6
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)