summaryrefslogtreecommitdiff
path: root/settings.h
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2006-04-18 18:02:52 +0000
committerKUDr <kudr@openttd.org>2006-04-18 18:02:52 +0000
commit24ef4ce560cc3e0b4e45fe15fae839ce8071bec9 (patch)
tree11ec2ba419bfc726e345b9fe99669a6dbf5d18ba /settings.h
parent537e4dba9c50fb95fc2c91162b2d22bb02fd618a (diff)
downloadopenttd-24ef4ce560cc3e0b4e45fe15fae839ce8071bec9.tar.xz
(svn r4470) -Fix: FS#97 — Possible bug in Win64 versions (by michi_cc)
Doesn't fix any known bug, but the code is now bit cleaner. The proper result of subtraction of two pointers is ptrdiff_t.
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);