Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions include/real/real.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down Expand Up @@ -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();
Expand Down