Skip to content

Commit a1daaae

Browse files
committed
Fix ubsan
1 parent 63ceed7 commit a1daaae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_io/iobase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ _io__RawIOBase_read_impl(PyObject *self, Py_ssize_t n)
949949
goto cleanup;
950950
}
951951

952-
res = PyObject_CallMethod(b, "resize", "i", bytes_filled);
952+
res = PyObject_CallMethod(b, "resize", "n", bytes_filled);
953953
if (res != Py_None) {
954954
if (res != NULL) {
955955
PyErr_Format(PyExc_ValueError,

0 commit comments

Comments
 (0)