diff --git a/src/fintamath/expressions/binary/PowExpression.cpp b/src/fintamath/expressions/binary/PowExpression.cpp index 88f56cddc..ec4aefc4d 100644 --- a/src/fintamath/expressions/binary/PowExpression.cpp +++ b/src/fintamath/expressions/binary/PowExpression.cpp @@ -141,7 +141,7 @@ std::vector PowExpression::getPartition(Integer bitNumber, const Intege while (result.size() < variableCount) { if (bitNumber % 2 == 1) { - counter++; + ++counter; } if (bitNumber % 2 == 0) { diff --git a/src/fintamath/numbers/IntegerFunctions.cpp b/src/fintamath/numbers/IntegerFunctions.cpp index bd4e7101b..9b0eb33f7 100644 --- a/src/fintamath/numbers/IntegerFunctions.cpp +++ b/src/fintamath/numbers/IntegerFunctions.cpp @@ -92,7 +92,7 @@ std::map factors(Integer rhs, Integer limit) { std::map factorRates; while (rhs % 2 == 0) { - factorRates[2]++; + ++factorRates[2]; rhs /= 2; } @@ -106,13 +106,13 @@ std::map factors(Integer rhs, Integer limit) { for (Integer i = 3; i <= limit; i += 2) { while (rhs % i == 0) { - factorRates[i]++; + ++factorRates[i]; rhs = rhs / i; } } if (rhs > 1) { - factorRates[rhs]++; + ++factorRates[rhs]; } return factorRates;