summaryrefslogtreecommitdiff
path: root/py/obj.c
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/obj.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/obj.c')
-rw-r--r--py/obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/obj.c b/py/obj.c
index baac1f568..65b447494 100644
--- a/py/obj.c
+++ b/py/obj.c
@@ -86,7 +86,7 @@ void mp_obj_print(mp_obj_t o_in, mp_print_kind_t kind) {
// helper function to print an exception with traceback
void mp_obj_print_exception(const mp_print_t *print, mp_obj_t exc) {
if (mp_obj_is_exception_instance(exc)) {
- mp_uint_t n, *values;
+ size_t n, *values;
mp_obj_exception_get_traceback(exc, &n, &values);
if (n > 0) {
assert(n % 3 == 0);