diff options
author | Arnavion <arnavion@gmail.com> | 2014-12-04 04:06:38 -0800 |
---|---|---|
committer | Arnavion <arnavion@gmail.com> | 2014-12-04 04:06:38 -0800 |
commit | 8062bce835681d8200666ad183fe8cf3f6d87468 (patch) | |
tree | e81450df3b1b71d763695c9832edb3ffca265255 /src/common/modes.c | |
parent | 3fbe5b876e3af3fde135eb42bcd3050b41865d1a (diff) |
Fix some obvious type warnings.
Diffstat (limited to 'src/common/modes.c')
-rw-r--r-- | src/common/modes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/modes.c b/src/common/modes.c index b7cd471f..23f75b1d 100644 --- a/src/common/modes.c +++ b/src/common/modes.c @@ -677,10 +677,10 @@ handle_mode (server * serv, char *word[], char *word_eol[], char *argstr; char sign; int len; - int arg; - int i, num_args; + size_t arg; + size_t i, num_args; int num_modes; - int offset = 3; + size_t offset = 3; int all_modes_have_args = FALSE; int using_front_tab = FALSE; mode_run mr; @@ -762,7 +762,7 @@ handle_mode (server * serv, char *word[], char *word_eol[], break; default: argstr = ""; - if ((all_modes_have_args || mode_has_arg (serv, sign, *modes)) && arg < (num_args+1)) + if ((all_modes_have_args || mode_has_arg (serv, sign, *modes)) && arg < (num_args + 1)) { arg++; argstr = word[arg + offset]; |