diff --git a/token.cpp b/token.cpp index ebe3fde13..ef521987b 100644 --- a/token.cpp +++ b/token.cpp @@ -141,7 +141,7 @@ bool TOKEN::simpleMatch(const TOKEN *tok, const char pattern[]) *current; current = next, next = *next ? ((tmp = strchr(++current, ' ')) ? tmp : (current + strlen(current))) : next, tok = tok->next() ) { - if ( !tok || (next-current) != tok->_str.length() || strncmp( current, tok->_cstr, next-current) ) + if ( !tok || static_cast(next-current) != tok->_str.length() || strncmp( current, tok->_cstr, next-current) ) return false; } return true;