From 56cb465cc93dcb35aaf7266ca3dbe2dcff1fac5f Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 20 Oct 2017 17:08:15 +0300 Subject: bpo-31825: Fixed OverflowError in the 'unicode-escape' codec (#4058) and in codecs.escape_decode() when decode an escaped non-ascii byte. --- Python/ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python') diff --git a/Python/ast.c b/Python/ast.c index 6989965efa..a6cc0f7e04 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -4147,7 +4147,7 @@ decode_utf8(struct compiling *c, const char **sPtr, const char *end) static int warn_invalid_escape_sequence(struct compiling *c, const node *n, - char first_invalid_escape_char) + unsigned char first_invalid_escape_char) { PyObject *msg = PyUnicode_FromFormat("invalid escape sequence \\%c", first_invalid_escape_char); -- cgit v1.2.1