diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-28 17:49:46 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-04 11:34:45 -0700 |
commit | 2e1b3325c63cd6c43a10a08acfc54d1fb29a5c03 (patch) | |
tree | bf02e8d37f7ea5ffe28d293ad7bd3b690cc7dae6 /parse_util.cpp | |
parent | 1b8f1650dc9959ace0df2037f751682e73b5bb1d (diff) |
Warning cleanup
Diffstat (limited to 'parse_util.cpp')
-rw-r--r-- | parse_util.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/parse_util.cpp b/parse_util.cpp index 47c99b1a..181d9c99 100644 --- a/parse_util.cpp +++ b/parse_util.cpp @@ -182,7 +182,7 @@ int parse_util_get_offset( const wcstring &str, int line, int line_offset ) if( off2 < 0 ) { - off2 = wcslen( buff )+1; + off2 = (int)(wcslen( buff )+1); } if( line_offset2 < 0 ) @@ -369,7 +369,7 @@ static void job_or_process_extent( const wchar_t *buff, int process ) { const wchar_t *begin, *end; - int pos; + long pos; wchar_t *buffcpy; int finished=0; @@ -484,7 +484,7 @@ void parse_util_token_extent( const wchar_t *buff, const wchar_t **prev_end ) { const wchar_t *begin, *end; - int pos; + long pos; wchar_t *buffcpy; tokenizer tok; @@ -714,9 +714,9 @@ wchar_t *parse_util_unescape_wildcards( const wchar_t *str ) token is not quoted. */ -static wchar_t get_quote( const wchar_t *cmd, int len ) +static wchar_t get_quote( const wchar_t *cmd, size_t len ) { - int i=0; + size_t i=0; wchar_t res=0; while( 1 ) @@ -780,7 +780,7 @@ void parse_util_get_parameter_info( const wcstring &cmd, const size_t pos, wchar wchar_t *cmd_tmp = wcsdup(cmd.c_str()); cmd_tmp[pos]=0; - int cmdlen = wcslen( cmd_tmp ); + size_t cmdlen = wcslen( cmd_tmp ); unfinished = (cmdlen==0); if( !unfinished ) { |