diff options
author | Neil <nyamatongwe@gmail.com> | 2018-04-19 17:09:27 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-04-19 17:09:27 +1000 |
commit | a29a92c614ae03f4058f0e63899350d83c43d670 (patch) | |
tree | 5b2c629dde7ea3c7976912d80ddf1626c27a258b /src/CellBuffer.h | |
parent | 463b5ec1bd24fd9b23d0f6149a30a4e0d9136eaa (diff) | |
download | scintilla-mirror-a29a92c614ae03f4058f0e63899350d83c43d670.tar.gz |
Casting changed in many places, due to change to 64-bit variables for 64-bit
builds. Some of the changes ensure no truncation while others remove casts
that are no longer needed because the externally visible Sci_Position is now
identical to Sci::Position. Some extra methods (CellBuffer::UCharAt and
Document::SciLineFromPosition) added to avoid casting in client code.
Sci::Line is currently identical to Sci::Position but it could be made smaller
so lines have Sci::Line types and are cast.
Some arguments widened.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r-- | src/CellBuffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h index 935ea6e69..065c73795 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -135,6 +135,7 @@ public: /// Retrieving positions outside the range of the buffer works and returns 0 char CharAt(Sci::Position position) const; + unsigned char UCharAt(Sci::Position position) const; void GetCharRange(char *buffer, Sci::Position position, Sci::Position lengthRetrieve) const; char StyleAt(Sci::Position position) const; void GetStyleRange(unsigned char *buffer, Sci::Position position, Sci::Position lengthRetrieve) const; |