Skip to content

Commit

Permalink
fix(Texture): Clang build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Feb 24, 2024
1 parent 341dc39 commit d9d7362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Texture.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ namespace zenkit {
break;
}
case TextureFormat::B8G8R8A8:
for (auto i = 0; i < width * height; ++i) {
for (auto i = 0u; i < width * height; ++i) {
conv[i * 4 + 0] = bytes[i * 4 + 2];
conv[i * 4 + 1] = bytes[i * 4 + 1];
conv[i * 4 + 2] = bytes[i * 4 + 0];
Expand Down Expand Up @@ -315,7 +315,7 @@ namespace zenkit {

if (_m_format == TextureFormat::P8) {
std::vector<std::uint8_t> conv;
for (auto i = 0; i < width * height; ++i) {
for (auto i = 0u; i < width * height; ++i) {
auto palentry = _m_palette[map[i]];
conv[i * 4 + 0] = palentry.r;
conv[i * 4 + 1] = palentry.g;
Expand Down

0 comments on commit d9d7362

Please sign in to comment.