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
Damien George 2015-12-17 12:45:22 +00:00
rodzic 257848587f
commit 6e2fb56d40
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;