aboutsummaryrefslogtreecommitdiff
path: root/py/vm.c
diff options
context:
space:
mode:
authorDamien George2016-01-02 22:04:12 +0000
committerDamien George2016-01-02 22:04:12 +0000
commit3d2daa2d03e300ac64005b8659c31f04a0f7fd53 (patch)
treee27db58705acf353ebc4481602e0f4f25f47f4a4 /py/vm.c
parentae4865efa1b4ff4a453bcd5992bf7fdcac69afaa (diff)
py: Change exception traceback data to use size_t instead of mp_uint_t.
The traceback array stores qstrs and line numbers. qstrs are typed as size_t, and line numbers should safely fit in size_t as well.
Diffstat (limited to 'py/vm.c')
-rw-r--r--py/vm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/vm.c b/py/vm.c
index 8c7c2265e..71e804c47 100644
--- a/py/vm.c
+++ b/py/vm.c
@@ -1311,9 +1311,9 @@ unwind_loop:
qstr block_name = mp_decode_uint(&ip);
qstr source_file = mp_decode_uint(&ip);
#endif
- mp_uint_t bc = code_state->ip - code_state->code_info - code_info_size;
- mp_uint_t source_line = 1;
- mp_uint_t c;
+ size_t bc = code_state->ip - code_state->code_info - code_info_size;
+ size_t source_line = 1;
+ size_t c;
while ((c = *ip)) {
mp_uint_t b, l;
if ((c & 0x80) == 0) {