diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-05 13:24:33 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-05 13:24:33 -0700 |
commit | 84729c4dfa6d16cf81aa23c249d0ffb030549e08 (patch) | |
tree | 76e71d7c457f3a377f33dd84a5bb9a7872f5f412 /parse_util.cpp | |
parent | 8de8877c7c0972db668b06ca5d693f622a54c97a (diff) |
Additional warnings cleanup, effective C++ violations, dead code removal
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)); } /* |