poppler/SplashOutputDev.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 18a60f394e13cbf82e35daf47d563abcbb01dd25 Author: Albert Astals Cid <aa...@kde.org> Date: Fri Mar 29 17:39:04 2019 +0100 SplashOutputDev::drawSoftMaskedImage: Rename n to fix shadow warning diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc index 846d73eb..544f132d 100644 --- a/poppler/SplashOutputDev.cc +++ b/poppler/SplashOutputDev.cc @@ -3944,9 +3944,9 @@ void SplashOutputDev::drawSoftMaskedImage(GfxState *state, Object * /* ref */, imgMaskData.y = 0; imgMaskData.maskStr = nullptr; imgMaskData.maskColorMap = nullptr; - const unsigned n = 1 << maskColorMap->getBits(); - imgMaskData.lookup = (SplashColorPtr)gmalloc(n); - for (unsigned i = 0; i < n; ++i) { + const unsigned imgMaskDataLookupSize = 1 << maskColorMap->getBits(); + imgMaskData.lookup = (SplashColorPtr)gmalloc(imgMaskDataLookupSize); + for (unsigned i = 0; i < imgMaskDataLookupSize; ++i) { pix = (unsigned char)i; maskColorMap->getGray(&pix, &gray); imgMaskData.lookup[i] = colToByte(gray); _______________________________________________ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler