From 30b5c5d0116f8e670a6ca74dcb6bd076a919d681 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 19 Dec 2005 06:05:18 +0000 Subject: Fix SF bug #1072182, problems with signed characters. Most of these can be backported. --- Python/ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/ast.c') diff --git a/Python/ast.c b/Python/ast.c index dde0d04f87..93334dc18e 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -2879,7 +2879,7 @@ static PyObject * parsestr(const char *s, const char *encoding) { size_t len; - int quote = *s; + int quote = Py_CHARMASK(*s); int rawmode = 0; int need_encoding; int unicode = 0; -- cgit v1.2.1