Prefer pre-increment/decrement operators in for loops

This commit is contained in:
Rangi42
2025-07-24 18:08:17 -04:00
parent c6d0e8de63
commit d6a28a6259
15 changed files with 48 additions and 48 deletions

View File

@@ -580,10 +580,10 @@ static void parseGBCFile(char const *, std::filebuf &file) {
}
static bool checkPngSwatch(std::vector<Rgba> const &pixels, uint32_t base, uint32_t swatchSize) {
for (uint32_t y = 0; y < swatchSize; y++) {
for (uint32_t y = 0; y < swatchSize; ++y) {
uint32_t yOffset = y * swatchSize * options.nbColorsPerPal + base;
for (uint32_t x = 0; x < swatchSize; x++) {
for (uint32_t x = 0; x < swatchSize; ++x) {
if (x == 0 && y == 0) {
continue;
}