diff options
author | rubidium <rubidium@openttd.org> | 2009-06-23 20:29:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-06-23 20:29:59 +0000 |
commit | bfe20321e7d3e8fff8c48a0d8b4cb629d0a786ae (patch) | |
tree | 0a3a2ae04f4663ed6d313517b7678e410eb7d7d0 /src | |
parent | 22cf8d8480b1a7e1627590ba2c48ab5019764910 (diff) | |
download | openttd-bfe20321e7d3e8fff8c48a0d8b4cb629d0a786ae.tar.xz |
(svn r16635) -Fix: a couple of MSVC 64 bits warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index c64b8a706..fde35834e 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -440,7 +440,7 @@ static void ini_load_settings(IniFile *ini, const SettingDesc *sd, const char *g case SDT_NUMX: case SDT_ONEOFMANY: case SDT_MANYOFMANY: - Write_ValidateSetting(ptr, sd, (size_t)p); break; + Write_ValidateSetting(ptr, sd, (int32)(size_t)p); break; case SDT_STRING: switch (GetVarMemType(sld->conv)) { @@ -1520,7 +1520,7 @@ void SetDefaultCompanySettings(CompanyID cid) const SettingDesc *sd; for (sd = _company_settings; sd->save.cmd != SL_END; sd++) { void *var = GetVariableAddress(&c->settings, &sd->save); - Write_ValidateSetting(var, sd, (size_t)sd->desc.def); + Write_ValidateSetting(var, sd, (int32)(size_t)sd->desc.def); } } |