* Fixed warning I just introduced.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29862 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-04-02 09:09:46 +00:00
parent 56ab1944d5
commit cdc7175bfd

View File

@ -464,7 +464,7 @@ Painter::StraightLine(BPoint a, BPoint b, const rgb_color& c) const
if (a.y == b.y) {
// horizontal
int32 y = (int32)a.y;
if (y < 0 || y >= fBuffer.height())
if (y < 0 || y >= (int32)fBuffer.height())
return true;
uint8* dst = fBuffer.row_ptr(y);