aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2023-06-01 22:54:08 +0900
committerGitHub <noreply@github.com>2023-06-01 22:54:08 +0900
commitb7ee51e81dd63990ec27daaa151864214cbf85d2 (patch)
treef410c597ed195d6bdb158346cec2f24c810794ec /io.c
parent47a8de609595def385cb8c716b80d7a64b718310 (diff)
downloadruby-b7ee51e81dd63990ec27daaa151864214cbf85d2.tar.gz
Expose `enum rb_io_event` flags without `_t` suffix. (#7887)
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index ddac22d37f..772aa8fe1e 100644
--- a/io.c
+++ b/io.c
@@ -9785,7 +9785,7 @@ wait_mode_sym(VALUE mode)
rb_raise(rb_eArgError, "unsupported mode: %"PRIsVALUE, mode);
}
-static inline rb_io_event_t
+static inline enum rb_io_event
io_event_from_value(VALUE value)
{
int events = RB_NUM2INT(value);
@@ -9816,7 +9816,7 @@ static VALUE
io_wait(int argc, VALUE *argv, VALUE io)
{
VALUE timeout = Qundef;
- rb_io_event_t events = 0;
+ enum rb_io_event events = 0;
int return_io = 0;
// The documented signature for this method is actually incorrect.