diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-07-14 16:46:51 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-07-14 16:49:03 +0200 |
commit | e8b6834e49799c887f77a952ee9e6eb90090ca9c (patch) | |
tree | 08e9f9bbf0b40ffdf83933951ea5f2e4980888c3 | |
parent | 75d0f7262004d93d457b4b0b499ebf0b23fcda04 (diff) |
Revert "Revert "WaE: comparison of integers of different signs""
This reverts commit e60f6ac2492f7780f55e0d336966d78097a4b396.
The "width" field is "int" in freetype 2.4.8 and "unsigned int" in 2.5.5
Change-Id: I4f7cc2bcf715890a85b956a5bf59667f634f31b5
-rw-r--r-- | vcl/generic/glyphs/gcach_ftyp.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx index 823b568311f1..1c9d17788837 100644 --- a/vcl/generic/glyphs/gcach_ftyp.cxx +++ b/vcl/generic/glyphs/gcach_ftyp.cxx @@ -1206,7 +1206,8 @@ 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 ) + // note width is "int" in freetype 2.4.8 and "unsigned int" in 2.5.5 + for (x = 0; x < static_cast<unsigned int>(rBitmapFT.width); ++x) *(pDest++) = *(pSrc++); for(; x < rRawBitmap.mnScanlineSize; ++x ) *(pDest++) = 0; @@ -1218,7 +1219,8 @@ 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 ) + // note width is "int" in freetype 2.4.8 and "unsigned int" in 2.5.5 + for (x = 0; x < static_cast<unsigned int>(rBitmapFT.width); ++x, nSrc+=nSrc) { if( (x & 7) == 0 ) nSrc = *(pSrc++); |