From b32663324ed2abc6a69ea136c25bbe53d985ce1b Mon Sep 17 00:00:00 2001 From: Nicolas Le Cam Date: Tue, 23 Dec 2008 19:54:22 +0000 Subject: [PATCH] Fix comparison between signed and unsigned integer expressions warning --- token.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;