py/qstr: Use size_t instead of mp_uint_t when counting allocated bytes.
This commit is contained in:
@@ -47,9 +47,9 @@ typedef mp_uint_t qstr;
|
||||
|
||||
typedef struct _qstr_pool_t {
|
||||
struct _qstr_pool_t *prev;
|
||||
mp_uint_t total_prev_len;
|
||||
mp_uint_t alloc;
|
||||
mp_uint_t len;
|
||||
size_t total_prev_len;
|
||||
size_t alloc;
|
||||
size_t len;
|
||||
const byte *qstrs[];
|
||||
} qstr_pool_t;
|
||||
|
||||
@@ -71,7 +71,7 @@ const char *qstr_str(qstr q);
|
||||
size_t qstr_len(qstr q);
|
||||
const byte *qstr_data(qstr q, size_t *len);
|
||||
|
||||
void qstr_pool_info(mp_uint_t *n_pool, mp_uint_t *n_qstr, mp_uint_t *n_str_data_bytes, mp_uint_t *n_total_bytes);
|
||||
void qstr_pool_info(size_t *n_pool, size_t *n_qstr, size_t *n_str_data_bytes, size_t *n_total_bytes);
|
||||
void qstr_dump_data(void);
|
||||
|
||||
#endif // __MICROPY_INCLUDED_PY_QSTR_H__
|
||||
|
||||
Reference in New Issue
Block a user