ruby-changes:64888
From: Kenta <ko1@a...>
Date: Fri, 15 Jan 2021 06:49:33 +0900 (JST)
Subject: [ruby-changes:64888] 500fc63cd0 (master): [ruby/bigdecimal] Reorder the arguments of BigDecimal_divide
https://git.ruby-lang.org/ruby.git/commit/?id=500fc63cd0 From 500fc63cd03aef44df154b7a3762d07967b80e94 Mon Sep 17 00:00:00 2001 From: Kenta Murata <mrkn@m...> Date: Fri, 15 Jan 2021 06:00:24 +0900 Subject: [ruby/bigdecimal] Reorder the arguments of BigDecimal_divide https://github.com/ruby/bigdecimal/commit/1e03da7076 diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 66be424..a3df2e5 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -1345,7 +1345,7 @@ BigDecimal_mult(VALUE self, VALUE r) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L1345 } static VALUE -BigDecimal_divide(Real **c, Real **res, Real **div, VALUE self, VALUE r) +BigDecimal_divide(VALUE self, VALUE r, Real **c, Real **res, Real **div) /* For c = self.div(r): with round operation */ { ENTER(5); @@ -1392,7 +1392,7 @@ BigDecimal_div(VALUE self, VALUE r) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L1392 { ENTER(5); Real *c=NULL, *res=NULL, *div = NULL; - r = BigDecimal_divide(&c, &res, &div, self, r); + r = BigDecimal_divide(self, r, &c, &res, &div); if (!NIL_P(r)) return r; /* coerced by other */ SAVE(c); SAVE(res); SAVE(div); /* a/b = c + r/b */ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/