aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--win32/ExternalLexer.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/win32/ExternalLexer.cxx b/win32/ExternalLexer.cxx
index 593bb315a..41cc812bc 100644
--- a/win32/ExternalLexer.cxx
+++ b/win32/ExternalLexer.cxx
@@ -195,9 +195,8 @@ void LexerLibrary::Release() {
//------------------------------------------
int FindLastSlash(char *inp) {
- int i;
int ret = -1;
- for (i = strlen(inp) - 1; i >= 0; i--) {
+ for (int i = static_cast<int>(strlen(inp)) - 1; i >= 0; i--) {
if (inp[i] == '\\' || inp[i] == '/') {
// if you don't like break:
/*