From ebfe7f60003e0894ed2fa4f8d1d8a431ed1c5482 Mon Sep 17 00:00:00 2001 From: truelight Date: Mon, 6 Feb 2006 22:30:43 +0000 Subject: [PATCH] (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 --- settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.c b/settings.c index 229f228c45..e021418b51 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; }