summaryrefslogtreecommitdiffstatshomepage
path: root/py/unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/unicode.c')
-rw-r--r--py/unicode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/unicode.c b/py/unicode.c
index 369240e23c..5acaad3788 100644
--- a/py/unicode.c
+++ b/py/unicode.c
@@ -71,7 +71,9 @@ STATIC const uint8_t attr[] = {
unichar utf8_get_char(const byte *s) {
unichar ord = *s++;
- if (!UTF8_IS_NONASCII(ord)) return ord;
+ if (!UTF8_IS_NONASCII(ord)) {
+ return ord;
+ }
ord &= 0x7F;
for (unichar mask = 0x40; ord & mask; mask >>= 1) {
ord &= ~mask;