summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklós Máté <mtmkls@gmail.com>2016-11-17 21:46:58 (GMT)
committerAlbert Astals Cid <aacid@kde.org>2016-11-17 21:49:22 (GMT)
commit4520ac7192f5c505e8fed5a14f66df85214f6620 (patch)
tree036edb89833b310c3afa3d38861c006a92cdb8a0
parentae6961a63c1d2d9271282a194bb57b219ce9d497 (diff)
Fix comparision between signed and unsignedv16.11.80
REVIEW: 129285 Note by Albert, this is still "broken" since QImage works on ints and the ft slot on uints so technically we should be doing lots of checks when calling scanLine and stuff, but compilers don't complain about that, so let's pretend all is good
-rw-r--r--generators/dvi/TeXFont_PFB.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/generators/dvi/TeXFont_PFB.cpp b/generators/dvi/TeXFont_PFB.cpp
index b8d0f64..3a7a95c 100644
--- a/generators/dvi/TeXFont_PFB.cpp
+++ b/generators/dvi/TeXFont_PFB.cpp
@@ -226,9 +226,9 @@ glyph* TeXFont_PFB::getGlyph(quint16 ch, bool generateCharacterPixmap, const QCo
// character outline only using the alpha channel. That
// ensures good quality rendering for overlapping characters.
uchar *srcScanLine = slot->bitmap.buffer;
- for(int row=0; row<slot->bitmap.rows; row++) {
+ for(unsigned int row=0; row<slot->bitmap.rows; row++) {
uchar *destScanLine = imgi.scanLine(row);
- for(int col=0; col<slot->bitmap.width; col++) {
+ for(unsigned int col=0; col<slot->bitmap.width; col++) {
destScanLine[4*col+0] = color.blue();
destScanLine[4*col+1] = color.green();
destScanLine[4*col+2] = color.red();