Skip to content

Commit

Permalink
i++ -> ++i
Browse files Browse the repository at this point in the history
  • Loading branch information
zaeta17 committed Jun 28, 2023
1 parent 85b7163 commit 924588d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions octree.h
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ namespace OrthoTree
{
bool carry = false;
auto ans = bitset_arithmetic<N>();
for (size_t i = 0; i < N; i++)
for (size_t i = 0; i < N; ++i)
{
autoc sum = (lhs[i] ^ rhs[i]) ^ carry;
carry = (lhs[i] && rhs[i]) || (lhs[i] && carry) || (rhs[i] && carry);
Expand Down Expand Up @@ -478,13 +478,13 @@ namespace OrthoTree

if (lhs.count() < rhs.count())
{
for (size_t i = 0; i < N; i++)
for (size_t i = 0; i < N; ++i)
if (lhs[i])
ret = ret + (rhs << i);
}
else
{
for (size_t i = 0; i < N; i++)
for (size_t i = 0; i < N; ++i)
if (rhs[i])
ret = ret + (lhs << i);
}
Expand Down

0 comments on commit 924588d

Please sign in to comment.