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/emitbc.c | |
parent | f12ea7c7ed1ef97ee48c4356dbbc808cc2bdee4a (diff) | |
download | micropython-963a5a3e82ded7ee75adae72ae7cb14796fa150e.tar.gz micropython-963a5a3e82ded7ee75adae72ae7cb14796fa150e.zip |
py, unix: Allow to compile with -Wsign-compare.
See issue #699.
Diffstat (limited to 'py/emitbc.c')
-rw-r--r-- | py/emitbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitbc.c b/py/emitbc.c index 6be8f46229..1ac49ac270 100644 --- a/py/emitbc.c +++ b/py/emitbc.c @@ -424,7 +424,7 @@ STATIC void emit_bc_label_assign(emit_t *emit, mp_uint_t l) { assert(l < emit->max_num_labels); if (emit->pass < MP_PASS_EMIT) { // assign label offset - assert(emit->label_offsets[l] == -1); + assert(emit->label_offsets[l] == (mp_uint_t)-1); emit->label_offsets[l] = emit->bytecode_offset; } else { // ensure label offset has not changed from MP_PASS_CODE_SIZE to MP_PASS_EMIT |