Skip to content

Commit e07a953

Browse files
committed
Add cast
1 parent 38efc89 commit e07a953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5582,7 +5582,7 @@ socket_getattr(PyObject *self, PyObject *name)
55825582
PyErr_Warn(PyExc_DeprecationWarning, "_socket.SocketType is deprecated and "
55835583
"will be removed in Python 3.16. "
55845584
"Use socket.socket instead");
5585-
return state != NULL ? state->sock_type : NULL;
5585+
return state != NULL ? (PyObject *)state->sock_type : NULL;
55865586
}
55875587

55885588
PyErr_Format(PyExc_AttributeError, "module _socket has no attribute '%U'", name);

0 commit comments

Comments
 (0)