Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrause committed Oct 20, 2024
1 parent 3f5080f commit d039d94
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/eval/semantics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@ Number Semantics::lex(const Number& a, const Number& b) {
return Number::ZERO;
}
auto r = Number::ZERO;
auto aa = a;
auto aa = abs(a);
auto bb = abs(b);
while (true) {
auto aaa = dif(aa, b);
if (abs(aaa) == abs(aa)) {
auto aaa = dif(aa, bb);
if (aaa == aa) {
break;
}
aa = aaa;
Expand Down

0 comments on commit d039d94

Please sign in to comment.