aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-07-11 11:27:30 +1000
committernyamatongwe <devnull@localhost>2011-07-11 11:27:30 +1000
commitf0e16d3e5cde10a8168deb434d11e7c6180cce2a (patch)
tree12ae185099830fa638cf4e8a121cafc1bf18918b /src
parent2dee86b9c77ab2462e5a18c10c079d9c71c18ca1 (diff)
downloadscintilla-mirror-f0e16d3e5cde10a8168deb434d11e7c6180cce2a.tar.gz
Fix type warnings.
Diffstat (limited to 'src')
-rw-r--r--src/ScintillaBase.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index fa5d836eb..da6b03e0d 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -205,7 +205,8 @@ void ScintillaBase::AutoCompleteStart(int lenEntered, const char *list) {
if (ac.chooseSingle && (listType == 0)) {
if (list && !strchr(list, ac.GetSeparator())) {
const char *typeSep = strchr(list, ac.GetTypesep());
- int lenInsert = static_cast<int>((typeSep) ? (typeSep-list) : strlen(list));
+ int lenInsert = typeSep ?
+ static_cast<int>(typeSep-list) : static_cast<int>(strlen(list));
if (ac.ignoreCase) {
SetEmptySelection(sel.MainCaret() - lenEntered);
pdoc->DeleteChars(sel.MainCaret(), lenEntered);