Skip to content

Commit 4ef2d43

Browse files
committed
gcc requires a cast
1 parent c512c8b commit 4ef2d43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ Connection_as_async(PyObject *klass_, PyObject *args, PyObject *kwargs)
801801
goto error;
802802

803803
APSW_FAULT(ConnectionAsyncTpNewFails, connection = (Connection *)klass->tp_new(klass, NULL, NULL),
804-
connection = PyErr_NoMemory());
804+
connection = (Connection*)PyErr_NoMemory());
805805
if (!connection)
806806
goto error;
807807
boxed_call->call_type = ConnectionInit;

0 commit comments

Comments
 (0)