diff options
| author | Neil <nyamatongwe@gmail.com> | 2017-06-09 11:26:02 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2017-06-09 11:26:02 +1000 | 
| commit | 454c44ddcd26843a1253757de333bc3c3c0cba8e (patch) | |
| tree | 4f96dc4abbb1f0285ce6728afc4a3abb688c5323 | |
| parent | 69870956666618aa5c8194abf6fb2967fa14d064 (diff) | |
| download | scintilla-mirror-454c44ddcd26843a1253757de333bc3c3c0cba8e.tar.gz | |
Avoid signed safety warnings from GCC 7.
| -rw-r--r-- | test/unit/testCellBuffer.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/test/unit/testCellBuffer.cxx b/test/unit/testCellBuffer.cxx index 4a8a7b612..80d9b6be8 100644 --- a/test/unit/testCellBuffer.cxx +++ b/test/unit/testCellBuffer.cxx @@ -21,7 +21,7 @@  TEST_CASE("CellBuffer") {  	const char sText[] = "Scintilla"; -	const size_t sLength = strlen(sText); +	const Sci::Position sLength = static_cast<Sci::Position>(strlen(sText));  	CellBuffer cb; @@ -42,7 +42,7 @@ TEST_CASE("CellBuffer") {  	SECTION("InsertTwoLines") {  		const char sText2[] = "Two\nLines"; -		const size_t sLength2 = strlen(sText2); +		const Sci::Position sLength2 = static_cast<Sci::Position>(strlen(sText2));  		bool startSequence = false;  		const char *cpChange = cb.InsertString(0, sText2, static_cast<int>(sLength), startSequence);  		REQUIRE(startSequence); | 
