summaryrefslogtreecommitdiff
path: root/src/date.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-06-08 13:22:06 +0000
committerfrosch <frosch@openttd.org>2013-06-08 13:22:06 +0000
commit5bb1d01af92868333e9e326ae5a111aaab80a338 (patch)
treeada1c3d72466bcc80a58358236e7b85c1c6e6940 /src/date.cpp
parenta23b84fdfc21d8317cde0f612c8c6fd3f0813fde (diff)
downloadopenttd-5bb1d01af92868333e9e326ae5a111aaab80a338.tar.xz
(svn r25333) -Fix: Potential signedness issue.
Diffstat (limited to 'src/date.cpp')
-rw-r--r--src/date.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/date.cpp b/src/date.cpp
index 5ac94e412..800e4faea 100644
--- a/src/date.cpp
+++ b/src/date.cpp
@@ -205,7 +205,7 @@ static void OnNewYear()
/* check if we reached the maximum year, decrement dates by a year */
} else if (_cur_year == MAX_YEAR + 1) {
Vehicle *v;
- uint days_this_year;
+ int days_this_year;
_cur_year--;
days_this_year = IsLeapYear(_cur_year) ? DAYS_IN_LEAP_YEAR : DAYS_IN_YEAR;