diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-03-02 09:29:48 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-08-03 17:51:21 +0200 |
commit | 9ce4aae531b70095583d4dfcb320681d3ac57f4a (patch) | |
tree | b2bdb03a7e12309b6597cdc28d17fb5f57b344de /vcl | |
parent | b74bf2fffa52c2959026522ba1cb6d258033f6c7 (diff) |
WaE: comparison of integers of different signs
Change-Id: Ie3c7fd8b72cd3cd3f9943c026ca348d9ed3c31f0
(cherry picked from commit bc4a2d7ce9d4417f9d6cd58505d4ea3e959b1354)
Signed-off-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/glyphs/gcach_ftyp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx index dab5479ac205..8481bba88b7c 100644 --- a/vcl/generic/glyphs/gcach_ftyp.cxx +++ b/vcl/generic/glyphs/gcach_ftyp.cxx @@ -1214,7 +1214,7 @@ bool ServerFont::GetGlyphBitmap8( sal_GlyphId aGlyphId, RawBitmap& rRawBitmap ) unsigned int x; for( int y = rRawBitmap.mnHeight; --y >= 0 ; ) { - for( x = 0; x < rBitmapFT.width; ++x ) + for( x = 0; x < static_cast<unsigned int>(rBitmapFT.width); ++x ) *(pDest++) = *(pSrc++); for(; x < rRawBitmap.mnScanlineSize; ++x ) *(pDest++) = 0; @@ -1226,7 +1226,7 @@ bool ServerFont::GetGlyphBitmap8( sal_GlyphId aGlyphId, RawBitmap& rRawBitmap ) for( int y = rRawBitmap.mnHeight; --y >= 0 ; ) { unsigned char nSrc = 0; - for( x = 0; x < rBitmapFT.width; ++x, nSrc+=nSrc ) + for( x = 0; x < static_cast<unsigned int>(rBitmapFT.width); ++x, nSrc+=nSrc ) { if( (x & 7) == 0 ) nSrc = *(pSrc++); |