1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 09:09:09 +00:00

(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.
This commit is contained in:
KUDr
2006-04-18 18:02:52 +00:00
parent 537e4dba9c
commit 24ef4ce560
3 changed files with 3 additions and 2 deletions

View File

@@ -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);
}
}