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:
parent
c264d30261
commit
ce36097748
Notes:
git
2021-05-24 09:41:35 +09:00
Merged-By: k0kubun <takashikkbn@gmail.com>
1 changed files with 1 additions and 4 deletions
|
@ -748,10 +748,7 @@ num_abs(VALUE num)
|
||||||
static VALUE
|
static VALUE
|
||||||
num_zero_p(VALUE num)
|
num_zero_p(VALUE num)
|
||||||
{
|
{
|
||||||
if (rb_equal(num, INT2FIX(0))) {
|
return rb_equal(num, INT2FIX(0));
|
||||||
return Qtrue;
|
|
||||||
}
|
|
||||||
return Qfalse;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue