aboutsummaryrefslogtreecommitdiff
path: root/py/unicode.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-12-10 22:37:07 +0000
committerDamien George <damien.p.george@gmail.com>2014-12-10 22:37:07 +0000
commit5318cc028aef9eb3edd88b01cd0e5b43c378fd83 (patch)
treecf8659c43c49dc646eaaabcfb9d1035b69df9972 /py/unicode.c
parent7eb2317fa23d96ef5d312a28590543e6890d7a5b (diff)
py: Tidy up a few function declarations.
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 17d3c7265..3951c2f8b 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)) {