kopia lustrzana https://github.com/micropython/micropython
py/qstr: Change type of qstr from mp_uint_t to size_t.
For builds where mp_uint_t is larger than size_t, it doesn't make sense to use such a wide type for qstrs. There can only be as many qstrs as there is address space on the machine, so size_t is the correct type to use. Saves about 3000 bytes of code size when building unix/ port with MICROPY_OBJ_REPR_D.pull/1727/head
rodzic
257848587f
commit
6e2fb56d40
|
@ -43,7 +43,7 @@ enum {
|
|||
MP_QSTR_number_of,
|
||||
};
|
||||
|
||||
typedef mp_uint_t qstr;
|
||||
typedef size_t qstr;
|
||||
|
||||
typedef struct _qstr_pool_t {
|
||||
struct _qstr_pool_t *prev;
|
||||
|
|
Ładowanie…
Reference in New Issue