diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2021-04-24 16:42:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-24 16:42:52 -0400 |
| commit | 6d27dbaab3b32ccebb076895fac3cc6aa3240d6c (patch) | |
| tree | 601c6ab5bef2f93b6d6ef4ba5506eb04dfb59c9f /ZAPD/OutputFormatter.h | |
| parent | ee8bdea252db4c764f4a2567c32754118fdce10b (diff) | |
Fix most -Wall warnings (#115)
* started on basic type errors
* Done. For now
* remove libgfxd binary
* Most warnings fixed
* Fix conflicts and new warnings
* Makefile
* Sig
* Clang format
* destructor
* Add a bunch of destructors
* clear the scalars vector after freeing the elements
* PR fixes (Anghelo Alf)
* Fix most clang -Wall warnings
Diffstat (limited to 'ZAPD/OutputFormatter.h')
| -rw-r--r-- | ZAPD/OutputFormatter.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ZAPD/OutputFormatter.h b/ZAPD/OutputFormatter.h index 770f5d5..360a113 100644 --- a/ZAPD/OutputFormatter.h +++ b/ZAPD/OutputFormatter.h @@ -7,15 +7,15 @@ class OutputFormatter { private: - const int tabSize; - const int defaultIndent; - const int lineLimit; + const uint32_t tabSize; + const uint32_t defaultIndent; + const uint32_t lineLimit; - int col; - int nest; - int nestIndent[8]; - int currentIndent; - int wordNests; + uint32_t col; + uint32_t nest; + uint32_t nestIndent[8]; + uint32_t currentIndent; + uint32_t wordNests; char word[128]; char space[128]; @@ -30,11 +30,11 @@ private: static int WriteStatic(const char* buf, int count); public: - OutputFormatter(int tabSize = 4, int defaultIndent = 4, int lineLimit = 120); + OutputFormatter(uint32_t tabSize = 4, uint32_t defaultIndent = 4, uint32_t lineLimit = 120); - int (*StaticWriter())(const char* buf, int count); + int (*StaticWriter())(const char* buf, int count); //Must be `int` due to libgfxd - int Write(const char* buf, int count); + int Write(const char* buf, uint32_t count); std::string GetOutput(); };
\ No newline at end of file |
