From 51ae056cdf09f6f2aacc1d50bc686a4618ae100e Mon Sep 17 00:00:00 2001 From: kishanshukla-2307 <2307kishanshukla@gmail.com> Date: Tue, 17 Mar 2020 21:43:03 +0530 Subject: [PATCH] minor bug fix --- include/real/real.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/real/real.hpp b/include/real/real.hpp index dfdd39d..b145d8e 100644 --- a/include/real/real.hpp +++ b/include/real/real.hpp @@ -411,7 +411,7 @@ namespace boost { x_op_1 = real(x).add(real(one), RECURSION_LEVEL::ONE); break; case (RECURSION_LEVEL::ONE): - x_op_1 = real(a).add(real(one), RECURSION_LEVEL::ZERO); + x_op_1 = real(x).add(real(one), RECURSION_LEVEL::ZERO); break; default: throw invalid_recursion_level_exception(); @@ -420,10 +420,10 @@ namespace boost { else if (op == OPERATION::SUBTRACTION) { switch(rc_lvl) { case (RECURSION_LEVEL::TWO): - x_op_1 = real(a).subtract(real(b), RECURSION_LEVEL::ONE); + x_op_1 = real(x).subtract(real(one), RECURSION_LEVEL::ONE); break; case (RECURSION_LEVEL::ONE): - x_op_1 = real(a).subtract(real(b), RECURSION_LEVEL::ZERO); + x_op_1 = real(x).subtract(real(one), RECURSION_LEVEL::ZERO); break; default: throw invalid_recursion_level_exception(); @@ -471,10 +471,10 @@ namespace boost { else if (op == OPERATION::SUBTRACTION) { switch(rc_lvl) { case (RECURSION_LEVEL::TWO): - x_op_1 = real(a).subtract(real(b), RECURSION_LEVEL::ONE); + x_op_1 = real(x).subtract(real(one), RECURSION_LEVEL::ONE); break; case (RECURSION_LEVEL::ONE): - x_op_1 = real(a).subtract(real(b), RECURSION_LEVEL::ZERO); + x_op_1 = real(x).subtract(real(one), RECURSION_LEVEL::ZERO); break; default: throw invalid_recursion_level_exception();