1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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 2021-05-24 09:41:35 +09: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