avoid compiler warning about comparison between signed and unsigned integer expressions

This commit is contained in:
Dane Springmeyer 2011-04-01 06:44:27 +00:00
parent 9ec293c503
commit 12c005b57e

View file

@ -189,7 +189,7 @@ namespace agg
m_x = m_x0 = x;
m_y = y;
if(y >= 0 && y < (int)m_pixf->height() &&
x >= 0 && x+len <= (int)m_pixf->width())
x >= 0 && x+(int)len <= (int)m_pixf->width())
{
return m_pix_ptr = m_pixf->pix_ptr(x, y);
}