From 040e0c8d671f86b20e2b929b4077fcc74aa55074 Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS Date: Tue, 22 Nov 2022 21:49:54 +0900 Subject: Reuse NIL_OR_UNDEF_P macro --- compar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compar.c') diff --git a/compar.c b/compar.c index 3635d23e79..040f77975e 100644 --- a/compar.c +++ b/compar.c @@ -50,7 +50,7 @@ VALUE rb_invcmp(VALUE x, VALUE y) { VALUE invcmp = rb_exec_recursive(invcmp_recursive, x, y); - if (UNDEF_P(invcmp) || NIL_P(invcmp)) { + if (NIL_OR_UNDEF_P(invcmp)) { return Qnil; } else { -- cgit v1.2.1