summaryrefslogtreecommitdiff
path: root/py/stackctrl.h
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2019-08-17 20:49:05 -0500
committerJeff Epler <jepler@gmail.com>2019-08-17 20:49:25 -0500
commit9d164965c9fe04f3485b6ee213507548cac403d0 (patch)
tree182c633014ee08d45363d80b3dca55a23775ae6b /py/stackctrl.h
parent85d7398476687a3abdbb142d79b8302ac43ef760 (diff)
localtime: don't hard-fault on argument type errors; handle localtime(float)
It turns out `mp_obj_int_get_checked` is not appropriate to call when the argument is not of int or long type--the "checked" refers to guarding against overflow/underflow, not type checking. For compatibility with CPython, handle float arguments. Closes: #2069
Diffstat (limited to 'py/stackctrl.h')
0 files changed, 0 insertions, 0 deletions