From f0e16d3e5cde10a8168deb434d11e7c6180cce2a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 11 Jul 2011 11:27:30 +1000 Subject: Fix type warnings. --- src/ScintillaBase.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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((typeSep) ? (typeSep-list) : strlen(list)); + int lenInsert = typeSep ? + static_cast(typeSep-list) : static_cast(strlen(list)); if (ac.ignoreCase) { SetEmptySelection(sel.MainCaret() - lenEntered); pdoc->DeleteChars(sel.MainCaret(), lenEntered); -- cgit v1.2.3