From a297391b22c1a4ec3464d13191f8cb33332c9863 Mon Sep 17 00:00:00 2001 From: Alexei Sheplyakov Date: Wed, 19 Mar 2008 12:27:27 +0300 Subject: [PATCH] bernoulli, fibonacci, iquo: explicitly convert return values to numeric. Implicit conversion from cl_N to numeric considered harmful, part 6. --- ginac/numeric.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ginac/numeric.cpp b/ginac/numeric.cpp index 40aa8e2e..1b980403 100644 --- a/ginac/numeric.cpp +++ b/ginac/numeric.cpp @@ -2161,7 +2161,7 @@ const numeric bernoulli(const numeric &nn) next_r = 4; } if (n(a.to_cl_N()), cln::the(b.to_cl_N())); r = numeric(rem_quo.remainder); - return rem_quo.quotient; + return numeric(rem_quo.quotient); } else { r = *_num0_p; return *_num0_p; -- 2.44.0