commit | d2ec81a8c99796b51fb8c49b77a7fe369863226f | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Fri Feb 07 09:17:07 2020 +0100 |
committer | GitHub <noreply@github.com> | Fri Feb 07 09:17:07 2020 +0100 |
tree | d88e7cbe89f65366d5591338fbe59a71192950db | |
parent | daa9756cb6395323d6f291efe5c7d7fdc6b2e9d8 [diff] [blame] |
bpo-39573: Add Py_SET_TYPE() function (GH-18394) Add Py_SET_TYPE() function to set the type of an object.
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 26e238c..dfc5b19 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c
@@ -221,7 +221,7 @@ return; } numfree++; - Py_TYPE(op) = (struct _typeobject *)free_list; + Py_SET_TYPE(op, (PyTypeObject *)free_list); free_list = op; } else