mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
gh-94673: Fix _PyTypes_InitTypes() and get_type_attr_as_size() (gh-103961)
This change has two small parts: 1. a follow-up to gh-103940 with one case I missed 2. adding a missing return that I noticed while working on related code
This commit is contained in:
parent
d2e2e53f73
commit
424a785a07
2 changed files with 1 additions and 4 deletions
|
|
@ -31,6 +31,7 @@ get_type_attr_as_size(PyTypeObject *tp, PyObject *name)
|
|||
PyErr_Format(PyExc_TypeError,
|
||||
"Missed attribute '%U' of type %s",
|
||||
name, tp->tp_name);
|
||||
return -1;
|
||||
}
|
||||
return PyLong_AsSsize_t(v);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue