From dc569bbcb4c12a5a400f9e5701e5c1027badadae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 Apr 2014 19:52:34 +0300 Subject: Fix code style in resources. --- src/resources/dye.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/resources/dye.cpp') diff --git a/src/resources/dye.cpp b/src/resources/dye.cpp index 7e6692c50..2baa2d12b 100644 --- a/src/resources/dye.cpp +++ b/src/resources/dye.cpp @@ -203,7 +203,7 @@ void DyePalette::replaceSColor(uint32_t *restrict pixels, const int bufSize) const { std::vector::const_iterator it_end = mColors.end(); - const int sz = mColors.size(); + const size_t sz = mColors.size(); if (!sz) return; if (sz % 2) @@ -260,7 +260,7 @@ void DyePalette::replaceAColor(uint32_t *restrict pixels, const int bufSize) const { std::vector::const_iterator it_end = mColors.end(); - const int sz = mColors.size(); + const size_t sz = mColors.size(); if (!sz) return; if (sz % 2) @@ -304,7 +304,7 @@ void DyePalette::replaceSOGLColor(uint32_t *restrict pixels, const int bufSize) const { std::vector::const_iterator it_end = mColors.end(); - const int sz = mColors.size(); + const size_t sz = mColors.size(); if (!sz) return; if (sz % 2) @@ -354,7 +354,7 @@ void DyePalette::replaceAOGLColor(uint32_t *restrict pixels, const int bufSize) const { std::vector::const_iterator it_end = mColors.end(); - const int sz = mColors.size(); + const size_t sz = mColors.size(); if (!sz) return; if (sz % 2) -- cgit v1.2.3-70-g09d2