diff options
author | Damien George <damien@micropython.org> | 2022-08-11 16:34:02 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-08-11 23:18:02 +1000 |
commit | 82b3500724206f2baa342a3559bbe716e9819426 (patch) | |
tree | 45e04bb190754e77871ff645acce5c2b28a47420 /py/objstr.c | |
parent | 94a19f10628f9c3a9978daae9f6f4c7ac352e9a2 (diff) | |
download | micropython-82b3500724206f2baa342a3559bbe716e9819426.tar.gz micropython-82b3500724206f2baa342a3559bbe716e9819426.zip |
py/qstr: Change qstr hash type from mp_uint_t to size_t.
The hash is either 8 or 16 bits (depending on MICROPY_QSTR_BYTES_IN_HASH)
so will fit in a size_t.
This saves 268 bytes on the unix nanbox build. Non-nanbox configurations
are unchanged because mp_uint_t is the same size as size_t.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/objstr.c')
0 files changed, 0 insertions, 0 deletions