(svn r3567) -Fix: for once and for all, use 'unsigned long' if you want to cast something
authortruelight
Mon, 06 Feb 2006 22:30:43 +0000
changeset 2991 4582583fba15
parent 2990 352b4590ee1c
child 2992 d3248a561d0d
(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
--- a/settings.c	Mon Feb 06 10:05:41 2006 +0000
+++ b/settings.c	Mon Feb 06 22:30:43 2006 +0000
@@ -550,7 +550,7 @@
 	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;
 	}