changeset 20378:b9a9c5d20e9e draft

(svn r25333) -Fix: Potential signedness issue.
author frosch <frosch@openttd.org>
date Sat, 08 Jun 2013 13:22:06 +0000
parents 4876d4744e4e
children 1b19278ee629
files src/date.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/date.cpp
+++ b/src/date.cpp
@@ -205,7 +205,7 @@
 	/* 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;