diff options
author | KUDr <KUDr@openttd.org> | 2006-04-18 18:02:52 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2006-04-18 18:02:52 +0000 |
commit | 52b6524e05214d42b4da1562d353056907d3c1b0 (patch) | |
tree | 11ec2ba419bfc726e345b9fe99669a6dbf5d18ba /saveload.c | |
parent | 17f2b09e331ff29bf0df363eb5ea480bf0378c84 (diff) | |
download | openttd-52b6524e05214d42b4da1562d353056907d3c1b0.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 'saveload.c')
-rw-r--r-- | saveload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/saveload.c b/saveload.c index 39e3d2591..4a5470cb9 100644 --- a/saveload.c +++ b/saveload.c @@ -722,7 +722,7 @@ void SlObject(void *object, const SaveLoad *sld) } for (; sld->cmd != SL_END; sld++) { - void *ptr = (byte*)object + (unsigned long)sld->address; + void *ptr = (byte*)object + (ptrdiff_t)sld->address; SlObjectMember(ptr, sld); } } |