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.
This commit is contained in:
Damien George 2015-12-17 12:45:22 +00:00
parent 257848587f
commit 6e2fb56d40
1 changed files with 1 additions and 1 deletions

View File

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