settings.h
changeset 3584 005b6170f15c
parent 3247 4e70e64adbb8
child 3888 7a781a439c30
--- a/settings.h	Tue Apr 18 17:44:24 2006 +0000
+++ b/settings.h	Tue Apr 18 18:02:52 2006 +0000
@@ -71,7 +71,7 @@
  * to add this to the address of the object */
 static inline void *ini_get_variable(const SaveLoad *sld, const void *object)
 {
-	return (object == NULL) ? sld->address : (byte*)object + (unsigned long)sld->address;
+	return (object == NULL) ? sld->address : (byte*)object + (ptrdiff_t)sld->address;
 }
 
 void IConsoleSetPatchSetting(const char *name, const char *value);