diff options
Diffstat (limited to 'py/unicode.c')
-rw-r--r-- | py/unicode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/unicode.c b/py/unicode.c index a91e08078e..d69e81c8e0 100644 --- a/py/unicode.c +++ b/py/unicode.c @@ -107,11 +107,11 @@ machine_uint_t utf8_ptr_to_index(const char *s, const char *ptr) { return i; } -// TODO: Rename to str_charlen; return machine_uint_t -uint unichar_charlen(const char *str, uint len) +// TODO: Rename to str_charlen +machine_uint_t unichar_charlen(const char *str, machine_uint_t len) { #if MICROPY_PY_BUILTINS_STR_UNICODE - uint charlen = 0; + machine_uint_t charlen = 0; for (const char *top = str + len; str < top; ++str) { if (!UTF8_IS_CONT(*str)) { ++charlen; |