diff options
author | S.H <[email protected]> | 2021-05-24 09:41:03 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-23 17:41:03 -0700 |
commit | ce36097748630ffd64927b80703a669e85e017ae (patch) | |
tree | 2c5b97d7a28b1a736b6c79e573bfea4e9381ebc7 /numeric.c | |
parent | c264d30261cb7d79caddd982300a7ae002293967 (diff) |
Refactor num_zero_p function (#4522)
Notes
Notes:
Merged-By: k0kubun <[email protected]>
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 |