Update usage of enum rb_io_mode. (#13128)

This commit is contained in:
Samuel Williams 2025-04-18 11:37:55 +09:00 committed by GitHub
parent 3bfcb013c0
commit 6f6d07272e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2025-04-18 02:38:10 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>

2
io.c
View File

@ -12329,8 +12329,8 @@ rb_io_s_binread(int argc, VALUE *argv, VALUE io)
{
VALUE offset;
struct foreach_arg arg;
enum rb_io_mode fmode = FMODE_READABLE|FMODE_BINMODE;
enum {
fmode = FMODE_READABLE|FMODE_BINMODE,
oflags = O_RDONLY
#ifdef O_BINARY
|O_BINARY