summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-02-06 22:30:43 +0000
committertruelight <truelight@openttd.org>2006-02-06 22:30:43 +0000
commitebfe7f60003e0894ed2fa4f8d1d8a431ed1c5482 (patch)
treeb86c21894cafd54b4e5d0d1f3f295e631ffd73b2
parent431b09ab796955d1c54a33fb7a481242c819afd2 (diff)
downloadopenttd-ebfe7f60003e0894ed2fa4f8d1d8a431ed1c5482.tar.xz
(svn r3567) -Fix: for once and for all, use 'unsigned long' if you want to cast something
from int-like to void *... we fixed that not too long ago, and the code below this changed line clearly tells you do to that :p
-rw-r--r--settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings.c b/settings.c
index 229f228c4..e021418b5 100644
--- a/settings.c
+++ b/settings.c
@@ -550,7 +550,7 @@ static const void *string_to_val(const SettingDesc *desc, const char *str)
switch (GetSettingGenericType(desc)) {
case SDT_NUMX: {
char *end;
- uint32 val = strtoul(str, &end, 0);
+ unsigned long val = strtoul(str, &end, 0);
if (*end != '\0') ShowInfoF("ini: trailing characters at end of setting '%s'", desc->name);
return (void*)val;
}