commit | 60ac6ed5579f6666130fc264d3b748ee9575e3aa | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Fri Feb 07 23:18:08 2020 +0100 |
committer | GitHub <noreply@github.com> | Fri Feb 07 23:18:08 2020 +0100 |
tree | c21d06611bea34d88dd5922850223837fa6ae733 | |
parent | de6f38db4859f7b8fe4da4556f06c52675fff24a [diff] [blame] |
bpo-39573: Use Py_SET_SIZE() function (GH-18402) Replace direct acccess to PyVarObject.ob_size with usage of the Py_SET_SIZE() function.
diff --git a/Python/marshal.c b/Python/marshal.c index 8d441a4..04a8dc5 100644 --- a/Python/marshal.c +++ b/Python/marshal.c
@@ -813,7 +813,7 @@ if (ob == NULL) return NULL; - Py_SIZE(ob) = n > 0 ? size : -size; + Py_SET_SIZE(ob, n > 0 ? size : -size); for (i = 0; i < size-1; i++) { d = 0;