Permalink
Browse files

Fix compiler warning on ancient freetype where FT_Bitmap::width and h…

…eight are signed int
  • Loading branch information...
rouault committed Nov 7, 2015
1 parent 03d875f commit 15f7afa37722e3bbaff48841aa3d9ab840b586ed
Showing with 4 additions and 4 deletions.
  1. +4 −4 renderers/agg/src/agg_font_freetype.cpp
@@ -422,12 +422,12 @@ namespace mapserver
y += bitmap.rows;
pitch = -pitch;
}
for(i = 0; i < bitmap.rows; i++)
for(i = 0; i < (unsigned int)bitmap.rows; i++)
{
sl.reset_spans();
bitset_iterator bits(buf, 0);
unsigned int j;
for(j = 0; j < bitmap.width; j++)
for(j = 0; j < (unsigned int)bitmap.width; j++)
{
if(bits.bit()) sl.add_cell(x + j, cover_full);
++bits;
@@ -463,11 +463,11 @@ namespace mapserver
y += bitmap.rows;
pitch = -pitch;
}
for(i = 0; i < bitmap.rows; i++)
for(i = 0; i < (unsigned int)bitmap.rows; i++)
{
sl.reset_spans();
const int8u* p = buf;
for(j = 0; j < bitmap.width; j++)
for(j = 0; j < (unsigned int)bitmap.width; j++)
{
if(*p) sl.add_cell(x + j, ras.apply_gamma(*p));
++p;

0 comments on commit 15f7afa

Please sign in to comment.