summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Reimer <manuel.reimer@gmx.de>2018-03-02 13:13:56 +0100
committerManuel Reimer <manuel.reimer@gmx.de>2018-03-02 13:13:56 +0100
commit07f8e76b40d5036459d510bac6d6c76af056bc86 (patch)
tree5a84b7543e2072a763efdc4a3711879570712dc1
parenta6d1088847bf7b1fad4ed5f7e8a4faf906f99701 (diff)
downloadgraphlcd-base-07f8e76b40d5036459d510bac6d6c76af056bc86.tar.gz
graphlcd-base-07f8e76b40d5036459d510bac6d6c76af056bc86.tar.bz2
Fix warning "comparison between signed and unsigned"
-rw-r--r--glcdgraphics/font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/glcdgraphics/font.c b/glcdgraphics/font.c
index db14638..20f1274 100644
--- a/glcdgraphics/font.c
+++ b/glcdgraphics/font.c
@@ -477,9 +477,9 @@ const cBitmap * cFont::GetCharacter(uint32_t ch) const
charBitmap->SetMonochrome(true);
unsigned char * bufPtr = face->glyph->bitmap.buffer;
unsigned char pixel;
- for (int y = 0; y < face->glyph->bitmap.rows; y++)
+ for (unsigned int y = 0; y < face->glyph->bitmap.rows; y++)
{
- for (int x = 0; x < face->glyph->bitmap.width; x++)
+ for (unsigned int x = 0; x < face->glyph->bitmap.width; x++)
{
pixel = (bufPtr[x / 8] >> (7 - x % 8)) & 1;
if (pixel)