commit | 8cc96a35e532ef999e5a3739deeb44f51a80744b | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Mon Dec 30 18:23:50 2013 +0000 |
committer | Damien George <damien.p.george@gmail.com> | Mon Dec 30 18:23:50 2013 +0000 |
tree | 7169f3ad0a43d36bdc67793bd46491d081805db2 | |
parent | 212c296c0b24dddd19099f9188176a14ade42d86 [diff] [blame] |
Put unicode functions in unicode.c, and tidy their names.
diff --git a/py/parse.c b/py/parse.c index ad9a47f..d3786ba 100644 --- a/py/parse.c +++ b/py/parse.c
@@ -212,7 +212,7 @@ } } 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;