Skip to content

Commit 12032df

Browse files
authored
Apply suggestions from code review
1 parent 8bd8f22 commit 12032df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/pystate.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ alloc_interpreter(void)
580580
}
581581
PyInterpreterState *interp = _Py_ALIGN_UP(mem, alignment);
582582
assert(_Py_IS_ALIGNED(interp, alignment));
583-
interp->_malloced = (uintptr_t)mem;
583+
interp->_malloced = mem;
584584
return interp;
585585
}
586586

@@ -596,7 +596,7 @@ free_interpreter(PyInterpreterState *interp)
596596
interp->obmalloc = NULL;
597597
}
598598
assert(_Py_IS_ALIGNED(interp, _Alignof(PyInterpreterState)));
599-
PyMem_RawFree((void *)interp->_malloced);
599+
PyMem_RawFree(interp->_malloced);
600600
}
601601
}
602602

0 commit comments

Comments
 (0)