From 12da4cfbd4a6edfdc7a4ad129bb8c9975059d254 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 19 Nov 2023 08:57:07 +1100 Subject: Fix type conversion warning. --- src/CellBuffer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { -- cgit v1.2.3