Squashed bug causing incorrect digits. Now fully working

I totally brainfarted and put this->preDigits.size() in the for
loop comparison clause, which gets re-evaluated every loop.
So it was leaving digits on the stack that should have been
printed, causing errors both immediately and down the line.
This commit is contained in:
A.M. Rowsell 2023-06-09 12:15:53 -04:00
commit 218d5b7da8
Signed by: amr
GPG key ID: 0B6E2D8375CF79A9
5 changed files with 70 additions and 27 deletions

View file

@ -11,13 +11,11 @@ public:
void pump(void);
private:
int numDigits;
std::vector<int> spigotList;
int spigotListLength;
int carry;
std::vector<int> preDigits;
};
#endif