From a77758f225b111337a2b9cb3393c907edc347324 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 18 Nov 2016 06:29:51 +0000 Subject: 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 --- rational.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'rational.c') 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); } -- cgit v1.2.3