summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/settings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index af99588e7..c842ff5fa 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -439,7 +439,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, (unsigned long)p); break;
+ Write_ValidateSetting(ptr, sd, (size_t)p); break;
case SDT_STRING:
switch (GetVarMemType(sld->conv)) {
@@ -1516,7 +1516,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, (int32)sd->desc.def);
+ Write_ValidateSetting(var, sd, (size_t)sd->desc.def);
}
}