diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-04-19 13:16:17 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-04-19 13:16:17 +1000 | 
| commit | 463b5ec1bd24fd9b23d0f6149a30a4e0d9136eaa (patch) | |
| tree | 2169b977fd536d4dad06cbe4c48c0156ca8da004 | |
| parent | b44cf0399ce972ce3421576d65a716aa5c748860 (diff) | |
| download | scintilla-mirror-463b5ec1bd24fd9b23d0f6149a30a4e0d9136eaa.tar.gz | |
Casts that avoid warnings if Position and Line are different sizes.
| -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 d9710347d..697d75b54 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -85,10 +85,10 @@ public:  		}  	}  	Sci::Line Lines() const override { -		return starts.Partitions(); +		return static_cast<Sci::Line>(starts.Partitions());  	}  	Sci::Line LineFromPosition(Sci::Position pos) const override { -		return starts.PartitionFromPosition(static_cast<POS>(pos)); +		return static_cast<Sci::Line>(starts.PartitionFromPosition(static_cast<POS>(pos)));  	}  	Sci::Position LineStart(Sci::Line line) const override {  		return starts.PositionFromPartition(static_cast<POS>(line)); | 
