summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-09-06 13:13:22 +0200
committerMichael Stahl <mstahl@redhat.com>2013-09-06 13:14:01 +0200
commitdebded3eb060bd3b0ebaaa16a5e4f47a46fa02a2 (patch)
tree3dc9c4368894fd10656a5d07f4e3b9ed23d70ec5 /vcl/source
parent916830c79ec293efc8862162bbb86d98467f8e6c (diff)
warning C4018: '<': signed/unsigned mismatch
Change-Id: I21b8f1037f68ede368bababa8b6b5201cd83104e
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/gdi/pngread.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx
index f8b4e9561c3e..2c9ad1113fae 100644
--- a/vcl/source/gdi/pngread.cxx
+++ b/vcl/source/gdi/pngread.cxx
@@ -125,8 +125,8 @@ private:
#ifdef DBG_UTIL
// do some checks in debug mode
- sal_uInt32 mnAllocSizeScanline;
- sal_uInt32 mnAllocSizeScanlineAlpha;
+ sal_Int32 mnAllocSizeScanline;
+ sal_Int32 mnAllocSizeScanlineAlpha;
#endif
// the temporary Scanline (and alpha) for direct scanline copy to Bitmap
sal_uInt8* mpScanline;
@@ -1351,7 +1351,7 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
sal_uInt8* pScanline(mpScanline);
sal_uInt8* pScanlineAlpha(mpScanlineAlpha);
- for(sal_uInt32 nX(0); nX < maOrigSize.Width(); nX++, pTmp += 4)
+ for (sal_Int32 nX(0); nX < maOrigSize.Width(); nX++, pTmp += 4)
{
// prepare content line as BGR by reordering when copying
// do not forget to invert alpha (source is alpha, target is opacity)
@@ -1484,7 +1484,7 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
OSL_ENSURE(mnAllocSizeScanline >= maOrigSize.Width() * 3, "Allocated Scanline too small (!)");
sal_uInt8* pScanline(mpScanline);
- for(sal_uInt32 nX(0); nX < maOrigSize.Width(); nX++, pTmp += 3)
+ for (sal_Int32 nX(0); nX < maOrigSize.Width(); nX++, pTmp += 3)
{
// prepare content line as BGR by reordering when copying
if(bCustomColorTable)