diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-18 06:29:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-18 06:29:51 +0000 |
commit | 81ec47ea185bbf30f42423d25994e479738b483c (patch) | |
tree | 445ed9405053486db7a2ffe45a5a396eeab82c24 /rational.c | |
parent | d9035a8fd46e2fbb944580a33b8138c5dc6dda3b (diff) | |
download | ruby-81ec47ea185bbf30f42423d25994e479738b483c.tar.gz |
internal.h: round macros
* internal.h (ROUND_FUNC, ROUND_CALL): macros wrapping round
functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r-- | rational.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rational.c b/rational.c index 0a120368c3..e554d5df37 100644 --- a/rational.c +++ b/rational.c @@ -1481,9 +1481,7 @@ nurat_round_n(int argc, VALUE *argv, VALUE self) enum ruby_num_rounding_mode mode = ( argc = rb_scan_args(argc, argv, "*:", NULL, &opt), rb_num_get_rounding_option(opt)); - VALUE (*round_func)(VALUE) = - ROUND_TO(mode, - nurat_round_half_up, nurat_round_half_even); + VALUE (*round_func)(VALUE) = ROUND_FUNC(mode, nurat_round); return f_round_common(argc, argv, self, round_func); } |