summaryrefslogtreecommitdiffstatshomepage
path: root/py/compile.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-21 02:04:32 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-21 03:27:09 +0200
commitbbf0e2fe120f095ce09fcb7eb631c9fd04bd9760 (patch)
treeba40233e70d58abf4120f632a36913ed12512a42 /py/compile.c
parent1d30b116852cc94f3096125997c310cf64fb6537 (diff)
downloadmicropython-bbf0e2fe120f095ce09fcb7eb631c9fd04bd9760.tar.gz
micropython-bbf0e2fe120f095ce09fcb7eb631c9fd04bd9760.zip
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/compile.c')
-rw-r--r--py/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/compile.c b/py/compile.c
index c895b26fa9..ef0130463d 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -117,7 +117,7 @@ mp_parse_node_t fold_constants(mp_parse_node_t pn) {
assert(0);
res = 0;
}
- if (MP_FIT_SMALL_INT(res)) {
+ if (MP_PARSE_FITS_SMALL_INT(res)) {
pn = mp_parse_node_new_leaf(MP_PARSE_NODE_SMALL_INT, res);
}
}