avoid gcc unsigned/signed comparison warning

This commit is contained in:
Dane Springmeyer 2013-03-18 16:54:26 -07:00
parent e91908206b
commit 3b807db7e1

View file

@ -120,7 +120,7 @@ private:
inline bool checkBounds(int x, int y) const
{
return (x >= 0 && x < width_ && y >= 0 && y < height_);
return (x >= 0 && x < static_cast<int>(width_) && y >= 0 && y < static_cast<int>(height_));
}
public: