diff options
| author | Jeff Epler <jepler@gmail.com> | 2019-08-17 20:49:05 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2019-08-17 20:49:25 -0500 |
| commit | 9d164965c9fe04f3485b6ee213507548cac403d0 (patch) | |
| tree | 182c633014ee08d45363d80b3dca55a23775ae6b /py/persistentcode.c | |
| parent | 85d7398476687a3abdbb142d79b8302ac43ef760 (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/persistentcode.c')
0 files changed, 0 insertions, 0 deletions
