Fix handling of FMODE_PREP.

This commit is contained in:
Samuel Williams 2020-09-15 18:50:42 +12:00
parent a9b2a96c5c
commit 026ba68c10
Notes: git 2020-09-15 19:53:42 +09:00

2
io.c
View File

@ -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;
}