diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-21 06:53:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-21 06:53:25 (GMT) |
commit | fff9a31a91283c39c363af219e595eab7d4da6f7 (patch) | |
tree | 0dfdec9e4e3e7caec6804bcc1fef1f2c19b9e532 /Python/ast.c | |
parent | c61ac1642d19f54c7b755098230967ad2e603180 (diff) | |
download | cpython-fff9a31a91283c39c363af219e595eab7d4da6f7.zip cpython-fff9a31a91283c39c363af219e595eab7d4da6f7.tar.gz cpython-fff9a31a91283c39c363af219e595eab7d4da6f7.tar.bz2 |
bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. (#748)
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c index 55beef5..d8941f0 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++; |