diff options
author | Neil <nyamatongwe@gmail.com> | 2018-01-26 18:04:38 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-01-26 18:04:38 +1100 |
commit | 8658d9b4ce85c12fe03876a5250e724780872407 (patch) | |
tree | 915599c2d99d2c763679dbb93a863206c5704d89 /src/CellBuffer.cxx | |
parent | 4a5e9654ce0c4a6cd6c1aff452f8f9344a9849a6 (diff) | |
download | scintilla-mirror-8658d9b4ce85c12fe03876a5250e724780872407.tar.gz |
Extend SplitVector to allow more than 2 billion elements on 64-bit systems.
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) { |