aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit/testCellBuffer.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-06-09 11:26:02 +1000
committerNeil <nyamatongwe@gmail.com>2017-06-09 11:26:02 +1000
commitdbefd4e6e1d808505086b3374106ff26ac2a6452 (patch)
treefb4fec4dd7c82346e8f69914d2caa2e17b4cc24f /test/unit/testCellBuffer.cxx
parentc7cdbd318695ccc5bd4e69dc0787d8c9d2b6886d (diff)
downloadscintilla-mirror-dbefd4e6e1d808505086b3374106ff26ac2a6452.tar.gz
Backport: Avoid signed safety warnings from GCC 7.
Backport of changeset 6296:c2c63e649256.
Diffstat (limited to 'test/unit/testCellBuffer.cxx')
-rw-r--r--test/unit/testCellBuffer.cxx4
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);