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

26
.gitignore vendored
View file

@ -1,3 +1,6 @@
*.txt
main
.gdb_history
# Created by https://www.toptal.com/developers/gitignore/api/c++
# Edit at https://www.toptal.com/developers/gitignore?templates=c++
@ -37,3 +40,26 @@
# End of https://www.toptal.com/developers/gitignore/api/c++
# Created by https://www.toptal.com/developers/gitignore/api/codeblocks
# Edit at https://www.toptal.com/developers/gitignore?templates=codeblocks
### CodeBlocks ###
# specific to CodeBlocks IDE
*.layout
*.depend
*.cbp
# generated directories
bin/
obj/
# End of https://www.toptal.com/developers/gitignore/api/codeblocks
# Created by https://www.toptal.com/developers/gitignore/api/kdevelop4
# Edit at https://www.toptal.com/developers/gitignore?templates=kdevelop4
### KDevelop4 ###
*.kdev4
.kdev4/
# End of https://www.toptal.com/developers/gitignore/api/kdevelop4