diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-02 08:06:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-02 08:59:18 +0200 |
commit | 08a9452b677bc68f56fbac3638cfaeff9f90b1eb (patch) | |
tree | 62407527420e6462000582220e5aa9f522dee0a9 /vcl/generic | |
parent | d8bb694c831d37cb4344e3352fe08e2919a7cdc1 (diff) |
-Werror,-Wsign-compare
Change-Id: I18e4249d574f0d48e2c2027a89a37125d09e6702
Diffstat (limited to 'vcl/generic')
-rw-r--r-- | vcl/generic/glyphs/gcach_ftyp.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx index 16f123f81595..fd09cf405fbc 100644 --- a/vcl/generic/glyphs/gcach_ftyp.cxx +++ b/vcl/generic/glyphs/gcach_ftyp.cxx @@ -1211,17 +1211,19 @@ bool ServerFont::GetGlyphBitmap8( sal_GlyphId aGlyphId, RawBitmap& rRawBitmap ) unsigned char* pDest = rRawBitmap.mpBits.get(); if( !bEmbedded ) { - for( int y = rRawBitmap.mnHeight, x; --y >= 0 ; ) + unsigned int x; + for( int y = rRawBitmap.mnHeight; --y >= 0 ; ) { for( x = 0; x < rBitmapFT.width; ++x ) *(pDest++) = *(pSrc++); - for(; x < int(rRawBitmap.mnScanlineSize); ++x ) + for(; x < rRawBitmap.mnScanlineSize; ++x ) *(pDest++) = 0; } } else { - for( int y = rRawBitmap.mnHeight, x; --y >= 0 ; ) + unsigned int x; + for( int y = rRawBitmap.mnHeight; --y >= 0 ; ) { unsigned char nSrc = 0; for( x = 0; x < rBitmapFT.width; ++x, nSrc+=nSrc ) @@ -1230,7 +1232,7 @@ bool ServerFont::GetGlyphBitmap8( sal_GlyphId aGlyphId, RawBitmap& rRawBitmap ) nSrc = *(pSrc++); *(pDest++) = (0x7F - nSrc) >> 8; } - for(; x < int(rRawBitmap.mnScanlineSize); ++x ) + for(; x < rRawBitmap.mnScanlineSize; ++x ) *(pDest++) = 0; } } |