aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-11-19 08:57:07 +1100
committerNeil <nyamatongwe@gmail.com>2023-11-19 08:57:07 +1100
commit12da4cfbd4a6edfdc7a4ad129bb8c9975059d254 (patch)
tree34fa94a8569c8cda2e29c8ceca63fe10b9db40d3
parentd533d08a0a30a7527dd8fa0c4df5c10d8bfd80e7 (diff)
downloadscintilla-mirror-12da4cfbd4a6edfdc7a4ad129bb8c9975059d254.tar.gz
Fix type conversion warning.
-rw-r--r--src/CellBuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 4b061db40..c90e5a337 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -646,7 +646,7 @@ void CellBuffer::GetCharRange(char *buffer, Sci::Position position, Sci::Positio
}
char CellBuffer::StyleAt(Sci::Position position) const noexcept {
- return hasStyles ? style.ValueAt(position) : 0;
+ return hasStyles ? style.ValueAt(position) : '\0';
}
void CellBuffer::GetStyleRange(unsigned char *buffer, Sci::Position position, Sci::Position lengthRetrieve) const {