summaryrefslogtreecommitdiff
path: root/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'settings.h')
-rw-r--r--settings.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings.h b/settings.h
index 1c95601da..d8d83c6e2 100644
--- a/settings.h
+++ b/settings.h
@@ -71,7 +71,7 @@ typedef enum {
* 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);