summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-01-02 21:14:25 +0100
committerStefan Dombrowski <stefan@uni-bonn.de>2011-01-02 21:14:25 +0100
commita9af783d51082103fac24b83440b9bd302a94bf4 (patch)
tree58214a430a492efa79ce82fa8738d3b928d2a4a6 /src/gui/widgets/browserbox.cpp
parented6d60e2a2ed2235c881f226a67a29cae0a59f16 (diff)
downloadmana-a9af783d51082103fac24b83440b9bd302a94bf4.tar.gz
mana-a9af783d51082103fac24b83440b9bd302a94bf4.tar.bz2
mana-a9af783d51082103fac24b83440b9bd302a94bf4.tar.xz
mana-a9af783d51082103fac24b83440b9bd302a94bf4.zip
Fixing compiler warnings
The compiler gave two times the warning: comparison between signed and unsigned integer expressions. Reviewed-by: thorbjorn
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r--src/gui/widgets/browserbox.cpp4
1 files 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();