mirror of
https://github.com/python/cpython.git
synced 2025-10-14 02:43:49 +00:00
Issue #23708: Fix _Py_read() compilation error on Windows
Fix typo: self->fd => fd
This commit is contained in:
parent
c9382eb7ae
commit
c1cf4f7ef9
1 changed files with 1 additions and 1 deletions
|
@ -1144,7 +1144,7 @@ _Py_read(int fd, void *buf, size_t count)
|
||||||
* handler raised an exception. */
|
* handler raised an exception. */
|
||||||
assert(!PyErr_Occurred());
|
assert(!PyErr_Occurred());
|
||||||
|
|
||||||
if (!_PyVerify_fd(self->fd)) {
|
if (!_PyVerify_fd(fd)) {
|
||||||
PyErr_SetFromErrno(PyExc_OSError);
|
PyErr_SetFromErrno(PyExc_OSError);
|
||||||
assert(errno == EBADF);
|
assert(errno == EBADF);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue