Skip to content

Commit e205e0a

Browse files
authored
Use _Py_STATIC_CAST in Include/internal/pycore_object.h
1 parent b471043 commit e205e0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/internal/pycore_object.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ static inline PyObject *
614614
_Py_XGetRef(PyObject **ptr)
615615
{
616616
for (;;) {
617-
PyObject *value = _Py_atomic_load_ptr(ptr);
617+
PyObject *value = _Py_STATIC_CAST(PyObject*, _Py_atomic_load_ptr(ptr));
618618
if (value == NULL) {
619619
return value;
620620
}
@@ -629,7 +629,7 @@ _Py_XGetRef(PyObject **ptr)
629629
static inline PyObject *
630630
_Py_TryXGetRef(PyObject **ptr)
631631
{
632-
PyObject *value = _Py_atomic_load_ptr(ptr);
632+
PyObject *value = _Py_STATIC_CAST(PyObject*, _Py_atomic_load_ptr(ptr));
633633
if (value == NULL) {
634634
return value;
635635
}

0 commit comments

Comments
 (0)