From 24ef4ce560cc3e0b4e45fe15fae839ce8071bec9 Mon Sep 17 00:00:00 2001 From: KUDr Date: Tue, 18 Apr 2006 18:02:52 +0000 Subject: (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. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'settings.h') 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); -- cgit v1.2.3-54-g00ecf