diff options
| author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2020-09-29 00:05:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-29 00:05:04 +0200 |
| commit | cb6db8b6ae47dccc1aa97830d0f05d29f31e0cbc (patch) | |
| tree | e0a7552c5ccf9a124e72f8681095e8de961e27be /Modules/_sqlite/microprotocols.c | |
| parent | d332e7b8164c3c9c885b9e631f33d9517b628b75 (diff) | |
| download | cpython-git-cb6db8b6ae47dccc1aa97830d0f05d29f31e0cbc.tar.gz | |
bpo-41861: Convert _sqlite3 PrepareProtocolType to heap type (GH-22428)
Diffstat (limited to 'Modules/_sqlite/microprotocols.c')
| -rw-r--r-- | Modules/_sqlite/microprotocols.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/microprotocols.c b/Modules/_sqlite/microprotocols.c index 3b2d7f42b8..64095adb4d 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); |
