mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix handling of FMODE_PREP.
This commit is contained in:
parent
a9b2a96c5c
commit
026ba68c10
Notes:
git
2020-09-15 19:53:42 +09:00
1 changed files with 1 additions and 1 deletions
2
io.c
2
io.c
|
@ -1306,7 +1306,7 @@ rb_io_from_fd(int f)
|
|||
rb_io_t *fptr;
|
||||
RB_IO_POINTER(io, fptr);
|
||||
|
||||
fptr->mode &= ~FMODE_PREP;
|
||||
fptr->mode |= FMODE_PREP;
|
||||
|
||||
return io;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue