summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/microprotocols.c
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2020-09-28 22:05:04 (GMT)
committerGitHub <noreply@github.com>2020-09-28 22:05:04 (GMT)
commitcb6db8b6ae47dccc1aa97830d0f05d29f31e0cbc (patch)
treee0a7552c5ccf9a124e72f8681095e8de961e27be /Modules/_sqlite/microprotocols.c
parentd332e7b8164c3c9c885b9e631f33d9517b628b75 (diff)
downloadcpython-cb6db8b6ae47dccc1aa97830d0f05d29f31e0cbc.zip
cpython-cb6db8b6ae47dccc1aa97830d0f05d29f31e0cbc.tar.gz
cpython-cb6db8b6ae47dccc1aa97830d0f05d29f31e0cbc.tar.bz2
bpo-41861: Convert _sqlite3 PrepareProtocolType to heap type (GH-22428)
Diffstat (limited to 'Modules/_sqlite/microprotocols.c')
-rw-r--r--Modules/_sqlite/microprotocols.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/microprotocols.c b/Modules/_sqlite/microprotocols.c
index 3b2d7f4..64095ad 100644
--- a/Modules/_sqlite/microprotocols.c
+++ b/Modules/_sqlite/microprotocols.c
@@ -56,7 +56,7 @@ pysqlite_microprotocols_add(PyTypeObject *type, PyObject *proto, PyObject *cast)
PyObject* key;
int rc;
- if (proto == NULL) proto = (PyObject*)&pysqlite_PrepareProtocolType;
+ if (proto == NULL) proto = (PyObject*)pysqlite_PrepareProtocolType;
key = Py_BuildValue("(OO)", (PyObject*)type, proto);
if (!key) {
@@ -152,7 +152,7 @@ PyObject *
pysqlite_adapt(pysqlite_Cursor *self, PyObject *args)
{
PyObject *obj, *alt = NULL;
- PyObject *proto = (PyObject*)&pysqlite_PrepareProtocolType;
+ PyObject *proto = (PyObject*)pysqlite_PrepareProtocolType;
if (!PyArg_ParseTuple(args, "O|OO", &obj, &proto, &alt)) return NULL;
return pysqlite_microprotocols_adapt(obj, proto, alt);