diff --git a/src/test/app/Loan_test.cpp b/src/test/app/Loan_test.cpp index 5c4cf8e316..b1c189d5f1 100644 --- a/src/test/app/Loan_test.cpp +++ b/src/test/app/Loan_test.cpp @@ -4861,15 +4861,15 @@ protected: // Fee difference rounds evenly test( loanMaximumPaymentsPerTransaction - 10, - (loanMaximumPaymentsPerTransaction - 10) / loanPaymentsPerFeeIncrement - 1, + ((loanMaximumPaymentsPerTransaction - 10) / loanPaymentsPerFeeIncrement) - 1, telINSUF_FEE_P); test( loanMaximumPaymentsPerTransaction - 10, - (loanMaximumPaymentsPerTransaction - 10) / loanPaymentsPerFeeIncrement); + ((loanMaximumPaymentsPerTransaction - 10) / loanPaymentsPerFeeIncrement)); // More fee is always ok test( loanMaximumPaymentsPerTransaction - 10, - (loanMaximumPaymentsPerTransaction - 10) / loanPaymentsPerFeeIncrement + 3); + ((loanMaximumPaymentsPerTransaction - 10) / loanPaymentsPerFeeIncrement) + 3); // Fee rounds up for (int under = 1; under < loanPaymentsPerFeeIncrement; ++under) {