From 00c904b47a4cac2cdf276346039f470f59c90c04 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 14 Jun 2014 17:48:40 +0300 Subject: [PATCH] objstrunicode: Signedness issues. --- py/objstrunicode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/objstrunicode.c b/py/objstrunicode.c index d70b33f8fe..334d9895e8 100644 --- a/py/objstrunicode.c +++ b/py/objstrunicode.c @@ -63,7 +63,7 @@ STATIC void uni_print_quoted(void (*print)(void *env, const char *fmt, ...), voi quote_char = '"'; } print(env, "%c", quote_char); - const char *s = (const char *)str_data, *top = (const char *)str_data + str_len; + const byte *s = str_data, *top = str_data + str_len; while (s < top) { unichar ch; ch = utf8_get_char(s);