aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-22 08:35:01 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-22 08:35:01 +1000
commit8f9a43df028d13c1bc6654aa6dcf66dd542843d2 (patch)
tree677c3aae65caee744f4ce00478f40dcfec7147bc /src/CellBuffer.cxx
parentafcd6f1fa748f2ade19010b3307c341b382818de (diff)
downloadscintilla-mirror-8f9a43df028d13c1bc6654aa6dcf66dd542843d2.tar.gz
Backport: Remove casts between char and unsigned char where possible.
Backport of changeset 6731:8e06234817c0.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 2928edcb4..a0873c986 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -382,7 +382,7 @@ char CellBuffer::CharAt(Sci::Position position) const noexcept {
}
unsigned char CellBuffer::UCharAt(Sci::Position position) const noexcept {
- return static_cast<unsigned char>(substance.ValueAt(position));
+ return substance.ValueAt(position);
}
void CellBuffer::GetCharRange(char *buffer, Sci::Position position, Sci::Position lengthRetrieve) const {