diff options
author | truelight <truelight@openttd.org> | 2006-02-06 22:30:43 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-02-06 22:30:43 +0000 |
commit | ebfe7f60003e0894ed2fa4f8d1d8a431ed1c5482 (patch) | |
tree | b86c21894cafd54b4e5d0d1f3f295e631ffd73b2 | |
parent | 431b09ab796955d1c54a33fb7a481242c819afd2 (diff) | |
download | openttd-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.c | 2 |
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; } |