summaryrefslogtreecommitdiff
path: root/py/objexcept.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-01-02 22:04:12 +0000
committerDamien George <damien.p.george@gmail.com>2016-01-02 22:04:12 +0000
commit3d2daa2d03e300ac64005b8659c31f04a0f7fd53 (patch)
treee27db58705acf353ebc4481602e0f4f25f47f4a4 /py/objexcept.h
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/objexcept.h')
-rw-r--r--py/objexcept.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objexcept.h b/py/objexcept.h
index 783f69466..88bce2b37 100644
--- a/py/objexcept.h
+++ b/py/objexcept.h
@@ -33,7 +33,7 @@ typedef struct _mp_obj_exception_t {
mp_obj_base_t base;
mp_uint_t traceback_alloc : (BITS_PER_WORD / 2);
mp_uint_t traceback_len : (BITS_PER_WORD / 2);
- mp_uint_t *traceback_data;
+ size_t *traceback_data;
mp_obj_tuple_t *args;
} mp_obj_exception_t;