summaryrefslogtreecommitdiffstatshomepage
path: root/py/unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/unicode.c')
-rw-r--r--py/unicode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/unicode.c b/py/unicode.c
index 17d3c72650..3951c2f8bb 100644
--- a/py/unicode.c
+++ b/py/unicode.c
@@ -28,6 +28,7 @@
#include "mpconfig.h"
#include "misc.h"
+#include "unicode.h"
// attribute flags
#define FL_PRINT (0x01)
@@ -96,7 +97,7 @@ const byte *utf8_next_char(const byte *s) {
#endif
}
-mp_uint_t utf8_ptr_to_index(const char *s, const char *ptr) {
+mp_uint_t utf8_ptr_to_index(const byte *s, const byte *ptr) {
mp_uint_t i = 0;
while (ptr > s) {
if (!UTF8_IS_CONT(*--ptr)) {