diff options
| author | Jeff Epler <jepler@gmail.com> | 2025-08-03 10:11:49 -0500 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-09-16 12:04:19 +1000 |
| commit | e9da4c9c98c329c85eb7273437ff9e567d6cd006 (patch) | |
| tree | 6b0a25e208f8c80e4fe7e2b1e3318878c186332d /py/py.cmake | |
| parent | 6d640a15ab5258140f402d62fcd69e73650c08d6 (diff) | |
unix/modsocket: Use type-checking mp_obj_get_int.
MP_OBJ_SMALL_INT_VALUE would give erroneous results, such as assertion
failures in the coverage build and other oddities like:
>>> s = socket.socket()
>>> s.recv(3.14)
MemoryError: memory allocation failed, allocating 4235896656 bytes
Signed-off-by: Jeff Epler <jepler@gmail.com>
Diffstat (limited to 'py/py.cmake')
0 files changed, 0 insertions, 0 deletions
