diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-28 14:51:12 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-28 14:51:12 +0100 |
commit | d1e355ea8e2a5a17ee126f5c3d173b2e6f33e460 (patch) | |
tree | d5ba59452f72a9dcc31fc6cdcf0ad8c08c8713b2 /py/smallint.c | |
parent | 813ed3bda6818bd8dd15ee5e3c673a24321e740b (diff) |
py: Fix check of small-int overflow when parsing ints.
Also unifies use of SMALL_INT_FITS macro across parser and runtime.
Diffstat (limited to 'py/smallint.c')
-rw-r--r-- | py/smallint.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/smallint.c b/py/smallint.c index 186c9c754..5543f126c 100644 --- a/py/smallint.c +++ b/py/smallint.c @@ -28,6 +28,7 @@ #include "mpconfig.h" #include "qstr.h" #include "obj.h" +#include "smallint.h" bool mp_small_int_mul_overflow(machine_int_t x, machine_int_t y) { // Check for multiply overflow; see CERT INT32-C |