diff options
author | Damien George <damien.p.george@gmail.com> | 2013-12-30 18:23:50 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2013-12-30 18:23:50 +0000 |
commit | 8cc96a35e532ef999e5a3739deeb44f51a80744b (patch) | |
tree | 7169f3ad0a43d36bdc67793bd46491d081805db2 /py/parse.c | |
parent | 212c296c0b24dddd19099f9188176a14ade42d86 (diff) | |
download | micropython-8cc96a35e532ef999e5a3739deeb44f51a80744b.tar.gz micropython-8cc96a35e532ef999e5a3739deeb44f51a80744b.zip |
Put unicode functions in unicode.c, and tidy their names.
Diffstat (limited to 'py/parse.c')
-rw-r--r-- | py/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/parse.c b/py/parse.c index ad9a47ffbc..d3786ba956 100644 --- a/py/parse.c +++ b/py/parse.c @@ -212,7 +212,7 @@ static void push_result_token(parser_t *parser, const mp_lexer_t *lex) { } } for (; i < len; i++) { - if (g_unichar_isdigit(str[i]) && str[i] - '0' < base) { + if (unichar_isdigit(str[i]) && str[i] - '0' < base) { int_val = base * int_val + str[i] - '0'; } else if (base == 16 && 'a' <= str[i] && str[i] <= 'f') { int_val = base * int_val + str[i] - 'a' + 10; |