diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-12-19 06:05:18 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-12-19 06:05:18 (GMT) |
commit | 30b5c5d0116f8e670a6ca74dcb6bd076a919d681 (patch) | |
tree | 20c3e7e3ec210387941f3e9ac930537f71410a09 /Parser/grammar.c | |
parent | 5d0ad50f5acf84f2e8a1ca5c6951f333aef0e25a (diff) | |
download | cpython-30b5c5d0116f8e670a6ca74dcb6bd076a919d681.zip cpython-30b5c5d0116f8e670a6ca74dcb6bd076a919d681.tar.gz cpython-30b5c5d0116f8e670a6ca74dcb6bd076a919d681.tar.bz2 |
Fix SF bug #1072182, problems with signed characters.
Most of these can be backported.
Diffstat (limited to 'Parser/grammar.c')
-rw-r--r-- | Parser/grammar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/grammar.c b/Parser/grammar.c index c0613df..d8e3897 100644 --- a/Parser/grammar.c +++ b/Parser/grammar.c @@ -180,7 +180,8 @@ translabel(grammar *g, label *lb) } if (lb->lb_type == STRING) { - if (isalpha((int)(lb->lb_str[1])) || lb->lb_str[1] == '_') { + if (isalpha(Py_CHARMASK(lb->lb_str[1])) || + lb->lb_str[1] == '_') { char *p; char *src; char *dest; |