diff options
author | nyamatongwe <unknown> | 2003-07-21 05:17:54 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-07-21 05:17:54 +0000 |
commit | dbe28b820d72ecbbf596a4fc47469e28cdf6e987 (patch) | |
tree | fe4563645b28e6b4a045b9c2ec8996f61f24c993 /src/ScintillaBase.cxx | |
parent | cc9b3f98605389db1bc07a1551a5892201907690 (diff) | |
download | scintilla-mirror-dbe28b820d72ecbbf596a4fc47469e28cdf6e987.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(); } |