changeset 11477:715c087d30e5 draft

(svn r15838) -Fix: MSVC 64 bits warnings
author rubidium <rubidium@openttd.org>
date Tue, 24 Mar 2009 22:00:11 +0000
parents 8356abea7834
children f3a6e2a15612
files src/disaster_cmd.cpp src/namegen.cpp
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/disaster_cmd.cpp
+++ b/src/disaster_cmd.cpp
@@ -880,9 +880,9 @@
 {
 	byte buf[lengthof(_disasters)];
 
-	size_t j = 0;
+	byte j = 0;
 	for (size_t i = 0; i != lengthof(_disasters); i++) {
-		if (_cur_year >= _disasters[i].min_year && _cur_year < _disasters[i].max_year) buf[j++] = i;
+		if (_cur_year >= _disasters[i].min_year && _cur_year < _disasters[i].max_year) buf[j++] = (byte)i;
 	}
 
 	if (j == 0) return;
--- a/src/namegen.cpp
+++ b/src/namegen.cpp
@@ -559,7 +559,7 @@
 		assert(i > 0);
 
 		/* Load the ending */
-		ending = map[SeedModChance(16, i, seed)];
+		ending = map[SeedModChance(16, (int)i, seed)];
 		/* Override possible CZG_*FREE; this must be a real gender,
 		 * otherwise we get overflow when modifying the adjectivum. */
 		gender = _name_czech_subst_ending[ending].gender;