From dbefd4e6e1d808505086b3374106ff26ac2a6452 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 9 Jun 2017 11:26:02 +1000 Subject: Backport: Avoid signed safety warnings from GCC 7. Backport of changeset 6296:c2c63e649256. --- test/unit/testCellBuffer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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(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(strlen(sText2)); bool startSequence = false; const char *cpChange = cb.InsertString(0, sText2, static_cast(sLength), startSequence); REQUIRE(startSequence); -- cgit v1.2.3