avoid gcc unsigned/signed comparison warning
This commit is contained in:
parent
e91908206b
commit
3b807db7e1
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue