Skip to content

Commit 7ca9e7a

Browse files
ashm-devsobolevn
andauthored
Fix UBSan error in _testcapi: correct create_attr_from_spec signature (#143097)
Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent f7fceed commit 7ca9e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_testcapi/module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ module_from_slots_exec(PyObject *self, PyObject *spec)
178178
}
179179

180180
static PyObject *
181-
create_attr_from_spec(PyObject *spec, PyObject *def)
181+
create_attr_from_spec(PyObject *spec, PyModuleDef *def)
182182
{
183183
assert(!def);
184184
return PyObject_GetAttrString(spec, "_gimme_this");

0 commit comments

Comments
 (0)