--- a/src/settings_gui.cpp Fri Feb 08 16:56:52 2008 +0000
+++ b/src/settings_gui.cpp Fri Feb 08 17:53:01 2008 +0000
@@ -557,7 +557,7 @@
value = ((GDType*)&_opt_mod_temp.diff)[i];
DrawArrowButtons(5, y, 3,
- (diffic_d->clicked_button == i) ? 1 << diffic_d->clicked_increase : 0,
+ (diffic_d->clicked_button == i) ? 1 + !!diffic_d->clicked_increase : 0,
!(HasBit(disabled, i) || gsd->min == value),
!(HasBit(disabled, i) || gsd->max == value));
--- a/src/tree_cmd.cpp Fri Feb 08 16:56:52 2008 +0000
+++ b/src/tree_cmd.cpp Fri Feb 08 17:53:01 2008 +0000
@@ -498,7 +498,7 @@
uint mi = 0;
for (uint i = 1; i < trees; i++) {
- if (te[i].x + te[i].y < min) {
+ if ((uint)(te[i].x + te[i].y) < min) {
min = te[i].x + te[i].y;
mi = i;
}