diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-16 17:47:07 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-16 17:47:07 +0000 |
commit | 963a5a3e82ded7ee75adae72ae7cb14796fa150e (patch) | |
tree | 78402c85b98c1c8f1889d7af7dc6f4828a8f55a5 /py/bc.c | |
parent | f12ea7c7ed1ef97ee48c4356dbbc808cc2bdee4a (diff) |
py, unix: Allow to compile with -Wsign-compare.
See issue #699.
Diffstat (limited to 'py/bc.c')
-rw-r--r-- | py/bc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -116,7 +116,7 @@ void mp_setup_code_state(mp_code_state *code_state, mp_obj_t self_in, mp_uint_t // Apply processing and check below only if we don't have kwargs, // otherwise, kw handling code below has own extensive checks. if (n_kw == 0 && !self->has_def_kw_args) { - if (n_args >= self->n_pos_args - self->n_def_args) { + if (n_args >= (mp_uint_t)(self->n_pos_args - self->n_def_args)) { // given enough arguments, but may need to use some default arguments for (mp_uint_t i = n_args; i < self->n_pos_args; i++) { code_state->state[n_state - 1 - i] = self->extra_args[i - (self->n_pos_args - self->n_def_args)]; |