diff Python/ast.c @ 36090:8cb686dd6e64 legacy-trunk

Fix SF bug #1072182, problems with signed characters. Most of these can be backported.
author Neal Norwitz <nnorwitz@gmail.com>
date Mon, 19 Dec 2005 06:05:18 +0000
parents de16a85c3b4c
children fe9bd21f27f2
line wrap: on
line diff
--- a/Python/ast.c	Mon Dec 19 04:27:42 2005 +0000
+++ b/Python/ast.c	Mon Dec 19 06:05:18 2005 +0000
@@ -2879,7 +2879,7 @@
 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;