diff options
Diffstat (limited to 'parse_util.cpp')
-rw-r--r-- | parse_util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parse_util.cpp b/parse_util.cpp index 80065a51..f523e38d 100644 --- a/parse_util.cpp +++ b/parse_util.cpp @@ -478,15 +478,15 @@ void parse_util_token_extent( const wchar_t *buff, tok_has_next( &tok ); tok_next( &tok ) ) { - int tok_begin = tok_get_pos( &tok ); - int tok_end=tok_begin; + size_t tok_begin = tok_get_pos( &tok ); + size_t tok_end = tok_begin; /* Calculate end of token */ if( tok_last_type( &tok ) == TOK_STRING ) { - tok_end +=wcslen(tok_last(&tok)); + tok_end += wcslen(tok_last(&tok)); } /* |