diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2021-03-20 03:45:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-20 03:45:24 -0400 |
| commit | 963a282dc10036f367a2cb09bb5651aefc73d2a4 (patch) | |
| tree | 1c53ce8e6ac29c138921a6876511313e5b97e74f /ZAPD/ZTexture.cpp | |
| parent | c8e1f444d4ce0f73a2cbed4b3abe9f1c1a496743 (diff) | |
Final Warning pass (#99)
* started on basic type errors
* Done. For now
* remove libgfxd binary
* Fix Clang Warnings
* Fix2
* Fix rollback of #92 and missed warning in ZCutscene.cpp
* ?
* add stdexcept to ZResource
* Fix make clean
* PR fixes
* Fix make file stuff
* Remove many more errors and remove -Wall
* Turns out Globals was used
* Final pass
Co-authored-by: Fig02 <fig02srl@gmail.com>
Diffstat (limited to 'ZAPD/ZTexture.cpp')
| -rw-r--r-- | ZAPD/ZTexture.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ZAPD/ZTexture.cpp b/ZAPD/ZTexture.cpp index e96c290..5dd6b77 100644 --- a/ZAPD/ZTexture.cpp +++ b/ZAPD/ZTexture.cpp @@ -157,7 +157,7 @@ void ZTexture::FixRawData() { if (type == TextureType::RGBA32bpp) { - for (int i = 0; i < rawData.size(); i += 4) + for (size_t i = 0; i < rawData.size(); i += 4) { uint8_t tmp = rawData[i]; rawData[i] = rawData[i + 2]; @@ -166,7 +166,7 @@ void ZTexture::FixRawData() } else if (type == TextureType::RGBA16bpp)// || type == TextureType::GrayscaleAlpha16bpp) { - for (int i = 0; i < rawData.size(); i += 2) + for (size_t i = 0; i < rawData.size(); i += 2) { uint8_t tmp = rawData[i]; rawData[i] = rawData[i + 1]; @@ -713,7 +713,7 @@ string ZTexture::GetSourceOutputCode(const std::string& prefix) uint8_t* rawDataArr = rawData.data(); - for (int i = 0; i < rawData.size(); i += 8) + for (size_t i = 0; i < rawData.size(); i += 8) { if (i % 32 == 0) sourceOutput += "\t"; |
