diff options
author | Damien George <damien.p.george@gmail.com> | 2016-01-02 22:04:12 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-01-02 22:04:12 +0000 |
commit | 3d2daa2d03e300ac64005b8659c31f04a0f7fd53 (patch) | |
tree | e27db58705acf353ebc4481602e0f4f25f47f4a4 /py/obj.h | |
parent | ae4865efa1b4ff4a453bcd5992bf7fdcac69afaa (diff) | |
download | micropython-3d2daa2d03e300ac64005b8659c31f04a0f7fd53.tar.gz micropython-3d2daa2d03e300ac64005b8659c31f04a0f7fd53.zip |
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.h')
-rw-r--r-- | py/obj.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -680,8 +680,8 @@ bool mp_obj_is_exception_type(mp_obj_t self_in); bool mp_obj_is_exception_instance(mp_obj_t self_in); bool mp_obj_exception_match(mp_obj_t exc, mp_const_obj_t exc_type); void mp_obj_exception_clear_traceback(mp_obj_t self_in); -void mp_obj_exception_add_traceback(mp_obj_t self_in, qstr file, mp_uint_t line, qstr block); -void mp_obj_exception_get_traceback(mp_obj_t self_in, mp_uint_t *n, mp_uint_t **values); +void mp_obj_exception_add_traceback(mp_obj_t self_in, qstr file, size_t line, qstr block); +void mp_obj_exception_get_traceback(mp_obj_t self_in, size_t *n, size_t **values); mp_obj_t mp_obj_exception_get_value(mp_obj_t self_in); mp_obj_t mp_obj_exception_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args); mp_obj_t mp_alloc_emergency_exception_buf(mp_obj_t size_in); |