mirror of https://github.com/python/cpython
Issue #23708: Fix _Py_read() compilation error on Windows
Fix typo: self->fd => fd
This commit is contained in:
parent
c9382eb7ae
commit
c1cf4f7ef9
|
@ -1144,7 +1144,7 @@ _Py_read(int fd, void *buf, size_t count)
|
|||
* handler raised an exception. */
|
||||
assert(!PyErr_Occurred());
|
||||
|
||||
if (!_PyVerify_fd(self->fd)) {
|
||||
if (!_PyVerify_fd(fd)) {
|
||||
PyErr_SetFromErrno(PyExc_OSError);
|
||||
assert(errno == EBADF);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue