Skip to content

Commit abcab36

Browse files
committed
update
1 parent c08c7b1 commit abcab36

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Objects/structseq.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ get_type_attr_as_size(PyTypeObject *tp, PyObject *name)
3939
return -1;
4040
}
4141

42-
Py_ssize_t result = PyLong_AsSsize_t(v);
43-
if (result == -1 && PyErr_Occurred()) {
44-
return -1;
45-
}
46-
47-
return result;
42+
return PyLong_AsSsize_t(v);
4843
}
4944

5045
#define VISIBLE_SIZE(op) Py_SIZE(op)

0 commit comments

Comments
 (0)