From fff9a31a91283c39c363af219e595eab7d4da6f7 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 21 Mar 2017 08:53:25 +0200 Subject: bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. (#748) --- 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 55beef580a..d8941f039e 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -4221,7 +4221,7 @@ decode_unicode_with_escapes(struct compiling *c, const node *n, const char *s, p += 10; } /* Should be impossible to overflow */ - assert(p - buf <= Py_SIZE(u)); + assert(p - buf <= PyBytes_GET_SIZE(u)); Py_DECREF(w); } else { *p++ = *s++; -- cgit v1.2.1