diff options
author | nyamatongwe <devnull@localhost> | 2000-04-07 12:04:36 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-04-07 12:04:36 +0000 |
commit | 9785733416ef26d325802b81692f6fdc3506be55 (patch) | |
tree | 337dc33f1d022c7a460caf1e607bac12fe6e7b61 /src/CellBuffer.cxx | |
parent | 8cb3d80031a74c832b8a006562a9ef010f2cbe5e (diff) | |
download | scintilla-mirror-9785733416ef26d325802b81692f6fdc3506be55.tar.gz |
Changing code to ensure no warnings are produced by compilers.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 4d032f94f..c89c1c8dd 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -678,7 +678,7 @@ void CellBuffer::InsertCharStyle(int position, char ch, char style) { bool CellBuffer::SetStyleAt(int position, char style, char mask) { char curVal = ByteAt(position*2 + 1); if ((curVal & mask) != style) { - SetByteAt(position*2 + 1, (curVal & ~mask) | style); + SetByteAt(position*2 + 1, static_cast<char>((curVal & ~mask) | style)); return true; } else { return false; @@ -691,7 +691,7 @@ bool CellBuffer::SetStyleFor(int position, int lengthStyle, char style, char mas while (lengthStyle--) { char curVal = ByteAt(bytePos); if ((curVal & mask) != style) { - SetByteAt(bytePos, (curVal & ~mask) | style); + SetByteAt(bytePos, static_cast<char>((curVal & ~mask) | style)); changed = true; } bytePos += 2; |