diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-21 02:04:32 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-21 03:27:09 +0200 |
commit | bbf0e2fe120f095ce09fcb7eb631c9fd04bd9760 (patch) | |
tree | ba40233e70d58abf4120f632a36913ed12512a42 /py/parse.c | |
parent | 1d30b116852cc94f3096125997c310cf64fb6537 (diff) |
parse: Note that fact that parser's small ints are different than VM small int.
Specifically, VM's small ints are 31 bit, while parser's only 28. There's already
MP_OBJ_FITS_SMALL_INT(), so, for clarity, rename MP_FIT_SMALL_INT() to
MP_PARSE_FITS_SMALL_INT().
Diffstat (limited to 'py/parse.c')
-rw-r--r-- | py/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/parse.c b/py/parse.c index bbab19d35..57d78a05b 100644 --- a/py/parse.c +++ b/py/parse.c @@ -279,7 +279,7 @@ STATIC void push_result_token(parser_t *parser, const mp_lexer_t *lex) { } if (dec) { pn = mp_parse_node_new_leaf(MP_PARSE_NODE_DECIMAL, qstr_from_strn(str, len)); - } else if (small_int && !overflow && MP_FIT_SMALL_INT(int_val)) { + } else if (small_int && !overflow && MP_PARSE_FITS_SMALL_INT(int_val)) { pn = mp_parse_node_new_leaf(MP_PARSE_NODE_SMALL_INT, int_val); } else { pn = mp_parse_node_new_leaf(MP_PARSE_NODE_INTEGER, qstr_from_strn(str, len)); |