diff options
author | nyamatongwe <devnull@localhost> | 2003-07-21 05:17:54 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-07-21 05:17:54 +0000 |
commit | e382634ac5a820f3187c7c8eab4bbef9ba6be792 (patch) | |
tree | fe4563645b28e6b4a045b9c2ec8996f61f24c993 /src/ScintillaBase.cxx | |
parent | ca798bc6fbd77e69ef5781d6ade963bcb7388617 (diff) | |
download | scintilla-mirror-e382634ac5a820f3187c7c8eab4bbef9ba6be792.tar.gz |
Improve 64 bit portability.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r-- | src/ScintillaBase.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<int>(strlen(list))); } else { SetEmptySelection(currentPos); pdoc->InsertString(currentPos, list + lenEntered); - SetEmptySelection(currentPos + strlen(list + lenEntered)); + SetEmptySelection(currentPos + static_cast<int>(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<int>(piece.length())); } pdoc->EndUndoAction(); } |