diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-01-30 14:48:59 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-01-30 14:48:59 +0900 |
commit | 361b3efe164bd753258c7a86aff5141f1fd3ecf6 (patch) | |
tree | 1db3c279926bddcc6310e26413997c583d594a60 /vm_insnhelper.c | |
parent | 03246171cc1a506b5e03c9141337ef4f5a1f0856 (diff) |
Use `UNDEF_P`
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index edce1fbe41..ac28300257 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1343,7 +1343,7 @@ vm_getivar(VALUE obj, ID id, const rb_iseq_t *iseq, IVC ic, const struct rb_call } - if (default_value != Qundef) { + if (!UNDEF_P(default_value)) { RUBY_ASSERT(!UNDEF_P(val)); } |