summaryrefslogtreecommitdiffstatshomepage
path: root/py/unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/unicode.c')
-rw-r--r--py/unicode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/unicode.c b/py/unicode.c
index 131ddc8108..c8faa57009 100644
--- a/py/unicode.c
+++ b/py/unicode.c
@@ -65,12 +65,12 @@ STATIC const uint8_t attr[] = {
AT_LO, AT_LO, AT_LO, AT_PR, AT_PR, AT_PR, AT_PR, 0
};
-unichar utf8_get_char(const char *s) {
+unichar utf8_get_char(const byte *s) {
return *s;
}
-char *utf8_next_char(const char *s) {
- return (char*)(s + 1);
+const byte *utf8_next_char(const byte *s) {
+ return s + 1;
}
bool unichar_isspace(unichar c) {