Skip to content

Commit 8bd8f22

Browse files
authored
use void * instead of uintptr_t
1 parent 9cb710d commit 8bd8f22

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Include/internal/pycore_interp_structs.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -748,17 +748,18 @@ struct _Py_unique_id_pool {
748748
The PyInterpreterState typedef is in Include/pytypedefs.h.
749749
*/
750750
struct _is {
751-
/* This structure is carefully allocated so that it's correctly aligned
752-
* to avoid undefined behaviors during LOAD and STORE. The '_malloced'
753-
* field stores the allocated pointer address that will later be freed.
754-
*/
755-
uintptr_t _malloced;
756751

757752
/* This struct contains the eval_breaker,
758753
* which is by far the hottest field in this struct
759754
* and should be placed at the beginning. */
760755
struct _ceval_state ceval;
761756

757+
/* This structure is carefully allocated so that it's correctly aligned
758+
* to avoid undefined behaviors during LOAD and STORE. The '_malloced'
759+
* field stores the allocated pointer address that will later be freed.
760+
*/
761+
void *_malloced;
762+
762763
PyInterpreterState *next;
763764

764765
int64_t id;

0 commit comments

Comments
 (0)