summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-20 00:00:04 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-20 00:00:04 +0000
commit4d79d5dd7c0c2f6d1ae361e4ab61449f2dc60276 (patch)
tree6d16b606d3bafd7baa3457df3d486b2e510cc4b2
parentb74501c98f9abf84f659a447077989eb3ffeb46c (diff)
downloadmicropython-4d79d5dd7c0c2f6d1ae361e4ab61449f2dc60276.tar.gz
micropython-4d79d5dd7c0c2f6d1ae361e4ab61449f2dc60276.zip
py: Fix type of integer in decoding int.
-rw-r--r--py/vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/vm.c b/py/vm.c
index cab340ff38..77762a13af 100644
--- a/py/vm.c
+++ b/py/vm.c
@@ -157,7 +157,7 @@ dispatch_loop:
break;
case MP_BC_LOAD_CONST_SMALL_INT: {
- int num = 0;
+ machine_int_t num = 0;
if ((ip[0] & 0x40) != 0) {
// Number is negative
num--;