(svn r15838) -Fix: MSVC 64 bits warnings

This commit is contained in:
rubidium 2009-03-24 22:00:11 +00:00
parent 5c44bb6b63
commit 4546be7e90
2 changed files with 3 additions and 3 deletions

View File

@ -880,9 +880,9 @@ static void DoDisaster()
{ {
byte buf[lengthof(_disasters)]; byte buf[lengthof(_disasters)];
size_t j = 0; byte j = 0;
for (size_t i = 0; i != lengthof(_disasters); i++) { 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; if (j == 0) return;

View File

@ -559,7 +559,7 @@ static char *MakeCzechTownName(char *buf, const char *last, uint32 seed)
assert(i > 0); assert(i > 0);
/* Load the ending */ /* 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, /* Override possible CZG_*FREE; this must be a real gender,
* otherwise we get overflow when modifying the adjectivum. */ * otherwise we get overflow when modifying the adjectivum. */
gender = _name_czech_subst_ending[ending].gender; gender = _name_czech_subst_ending[ending].gender;