Commit 6e2fb56d authored by Damien George's avatar Damien George
Browse files

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
parent 25784858
...@@ -43,7 +43,7 @@ enum { ...@@ -43,7 +43,7 @@ enum {
MP_QSTR_number_of, MP_QSTR_number_of,
}; };
typedef mp_uint_t qstr; typedef size_t qstr;
typedef struct _qstr_pool_t { typedef struct _qstr_pool_t {
struct _qstr_pool_t *prev; struct _qstr_pool_t *prev;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment