From e382634ac5a820f3187c7c8eab4bbef9ba6be792 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 21 Jul 2003 05:17:54 +0000 Subject: Improve 64 bit portability. --- src/ScintillaBase.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ScintillaBase.cxx') diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index d2927fa9d..039539ad3 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -203,11 +203,11 @@ void ScintillaBase::AutoCompleteStart(int lenEntered, const char *list) { pdoc->DeleteChars(currentPos, lenEntered); SetEmptySelection(currentPos); pdoc->InsertString(currentPos, list); - SetEmptySelection(currentPos + strlen(list)); + SetEmptySelection(currentPos + static_cast(strlen(list))); } else { SetEmptySelection(currentPos); pdoc->InsertString(currentPos, list + lenEntered); - SetEmptySelection(currentPos + strlen(list + lenEntered)); + SetEmptySelection(currentPos + static_cast(strlen(list + lenEntered))); } return; } @@ -340,7 +340,7 @@ void ScintillaBase::AutoCompleteCompleted() { if (item != -1) { SString piece = selected; pdoc->InsertString(firstPos, piece.c_str()); - SetEmptySelection(firstPos + piece.length()); + SetEmptySelection(firstPos + static_cast(piece.length())); } pdoc->EndUndoAction(); } -- cgit v1.2.3