Fix comparison between signed and unsigned integer expressions warning

This commit is contained in:
Nicolas Le Cam 2008-12-23 19:54:22 +00:00
parent 44b459a98c
commit b32663324e
1 changed files with 1 additions and 1 deletions

View File

@ -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<size_t>(next-current) != tok->_str.length() || strncmp( current, tok->_cstr, next-current) )
return false;
}
return true;