mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 11:40:18 +01:00
py: Change qstr_* functions to use size_t as the type for str len arg.
This commit is contained in:
@@ -2039,7 +2039,7 @@ const char *mp_obj_str_get_data(mp_obj_t self_in, mp_uint_t *len) {
|
||||
}
|
||||
|
||||
#if MICROPY_OBJ_REPR == MICROPY_OBJ_REPR_C
|
||||
const byte *mp_obj_str_get_data_no_check(mp_obj_t self_in, mp_uint_t *len) {
|
||||
const byte *mp_obj_str_get_data_no_check(mp_obj_t self_in, size_t *len) {
|
||||
if (MP_OBJ_IS_QSTR(self_in)) {
|
||||
return qstr_data(MP_OBJ_QSTR_VALUE(self_in), len);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user