summaryrefslogtreecommitdiff
path: root/src/resources/dye/dyepalette_replacescolor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/dye/dyepalette_replacescolor.cpp')
-rw-r--r--src/resources/dye/dyepalette_replacescolor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/dye/dyepalette_replacescolor.cpp b/src/resources/dye/dyepalette_replacescolor.cpp
index 80b82751d..4c987aa9d 100644
--- a/src/resources/dye/dyepalette_replacescolor.cpp
+++ b/src/resources/dye/dyepalette_replacescolor.cpp
@@ -41,9 +41,9 @@ void DyePalette::replaceSColorDefault(uint32_t *restrict pixels,
{
STD_VECTOR<DyeColor>::const_iterator it_end = mColors.end();
const size_t sz = mColors.size();
- if (sz == 0u || pixels == nullptr)
+ if (sz == 0U || pixels == nullptr)
return;
- if ((sz % 2) != 0u)
+ if ((sz % 2) != 0U)
-- it_end;
for (const uint32_t *const p_end = pixels + CAST_SIZE(bufSize);
@@ -102,9 +102,9 @@ void DyePalette::replaceSColorSse2(uint32_t *restrict pixels,
{
STD_VECTOR<DyeColor>::const_iterator it_end = mColors.end();
const size_t sz = mColors.size();
- if (sz == 0u || pixels == nullptr)
+ if (sz == 0U || pixels == nullptr)
return;
- if ((sz % 2) != 0u)
+ if ((sz % 2) != 0U)
-- it_end;
const int mod = bufSize % 8;
const int bufEnd = bufSize - mod;
@@ -183,9 +183,9 @@ void DyePalette::replaceSColorAvx2(uint32_t *restrict pixels,
{
STD_VECTOR<DyeColor>::const_iterator it_end = mColors.end();
const size_t sz = mColors.size();
- if (sz == 0u || pixels == nullptr)
+ if (sz == 0U || pixels == nullptr)
return;
- if ((sz % 2) != 0u)
+ if ((sz % 2) != 0U)
-- it_end;
const int mod = bufSize % 8;
const int bufEnd = bufSize - mod;