From ca896d0585929793e9c424142834bfde08b1d489 Mon Sep 17 00:00:00 2001 From: Alfonso Gregory <83477269+gAlfonso-bit@users.noreply.github.com> Date: Sun, 11 Jul 2021 11:01:33 -0400 Subject: [PATCH] Make changes in respect to feedback --- src/CalcManager/Ratpack/num.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CalcManager/Ratpack/num.cpp b/src/CalcManager/Ratpack/num.cpp index 15448c05..5bf6d904 100644 --- a/src/CalcManager/Ratpack/num.cpp +++ b/src/CalcManager/Ratpack/num.cpp @@ -601,7 +601,7 @@ bool zernum(_In_ PNUMBER a) // loop over all the digits until you find a nonzero or until you run // out of digits - for (int32_t length = a->cdigit; length > 0; length--) + for (int32_t length = a->cdigit; length > 0; --length) { if (*pcha) { @@ -609,7 +609,7 @@ bool zernum(_In_ PNUMBER a) return false; } - pcha++; + ++pcha; } // All of the digits are zero, therefore the number is zero return true;