diff options
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 e87c5c305..1884a497a 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -394,7 +394,7 @@ const char *CellBuffer::RangePointer(Sci::Position position, Sci::Position range } Sci::Position CellBuffer::GapPosition() const { - return substance.GapPosition(); + return static_cast<Sci::Position>(substance.GapPosition()); } // The char* returned is to an allocation owned by the undo history @@ -457,7 +457,7 @@ const char *CellBuffer::DeleteChars(Sci::Position position, Sci::Position delete } Sci::Position CellBuffer::Length() const { - return substance.Length(); + return static_cast<Sci::Position>(substance.Length()); } void CellBuffer::Allocate(Sci::Position newSize) { |