Refactor num_zero_p function (#4522)

This commit is contained in:
S.H 2021-05-24 09:41:03 +09:00 committed by GitHub
parent c264d30261
commit ce36097748
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2025-04-09 13:49:37 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>

View File

@ -748,10 +748,7 @@ num_abs(VALUE num)
static VALUE
num_zero_p(VALUE num)
{
if (rb_equal(num, INT2FIX(0))) {
return Qtrue;
}
return Qfalse;
return rb_equal(num, INT2FIX(0));
}
static VALUE