From a9af783d51082103fac24b83440b9bd302a94bf4 Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Sun, 2 Jan 2011 21:14:25 +0100 Subject: Fixing compiler warnings The compiler gave two times the warning: comparison between signed and unsigned integer expressions. Reviewed-by: thorbjorn --- src/gui/widgets/browserbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 735c1833..b74e4e0e 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -280,7 +280,7 @@ void BrowserBox::draw(gcn::Graphics *graphics) graphics->fillRectangle(gcn::Rectangle(0, 0, getWidth(), getHeight())); } - if (mSelectedLink >= 0 && mSelectedLink < mLinks.size()) + if (mSelectedLink >= 0 && (unsigned) mSelectedLink < mLinks.size()) { if ((mHighMode & BACKGROUND)) { @@ -326,7 +326,7 @@ int BrowserBox::calcHeight() { int x = 0, y = 0; int wrappedLines = 0; - int link = 0; + unsigned link = 0; gcn::Font *font = getFont(); int fontHeight = font->getHeight(); -- cgit v1.2.3-70-g09d2