diff options
author | Damien George <damien.p.george@gmail.com> | 2015-03-19 00:21:29 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-03-19 00:25:33 +0000 |
commit | 2e2e404ff77e95dbe4fee0f19c91913a5888fb6f (patch) | |
tree | 32989d5722293edb145295ae137efc32cfdf6f3a /py/lexer.h | |
parent | 02894b51f48779569e72dff2c2a1edfd6d74b6c1 (diff) |
py: Allow to compile with extra warnings (sign-compare, unused-param).
Diffstat (limited to 'py/lexer.h')
-rw-r--r-- | py/lexer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py/lexer.h b/py/lexer.h index 3118df62c..17c472d98 100644 --- a/py/lexer.h +++ b/py/lexer.h @@ -141,7 +141,8 @@ typedef enum _mp_token_kind_t { // the next-byte function must return the next byte in the stream // it must return MP_LEXER_EOF if end of stream // it can be called again after returning MP_LEXER_EOF, and in that case must return MP_LEXER_EOF -#define MP_LEXER_EOF (-1) +#define MP_LEXER_EOF ((unichar)(-1)) + typedef mp_uint_t (*mp_lexer_stream_next_byte_t)(void*); typedef void (*mp_lexer_stream_close_t)(void*); |