diff options
author | S-H-GAMELINKS <gamelinks007@gmail.com> | 2022-11-22 21:49:54 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-02 01:19:55 +0900 |
commit | 040e0c8d671f86b20e2b929b4077fcc74aa55074 (patch) | |
tree | 2b807d5bc11e24295195acce6014ffbc8bb88eb3 /io.c | |
parent | 2c939458cab06b4fda09b55a57b8bac30efe6b17 (diff) |
Reuse NIL_OR_UNDEF_P macro
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6787
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1424,7 +1424,7 @@ rb_io_wait(VALUE io, VALUE events, VALUE timeout) struct timeval tv_storage; struct timeval *tv = NULL; - if (timeout == Qnil || UNDEF_P(timeout)) { + if (NIL_OR_UNDEF_P(timeout)) { timeout = fptr->timeout; } |