summaryrefslogtreecommitdiff
path: root/oldloader.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-20 12:09:32 +0000
committertruelight <truelight@openttd.org>2006-08-20 12:09:32 +0000
commit73cd71db04836405a398fb946fb3a5e6345fb2e4 (patch)
tree8ea819b5d596c612f5f825b3e4881663c4af5722 /oldloader.c
parentbd7fabb647f5680136f8c7fa6e8c95d064f5c62c (diff)
downloadopenttd-73cd71db04836405a398fb946fb3a5e6345fb2e4.tar.xz
(svn r5974) -Codechange: added casts all around the place to make Windows 64bit happy (michi_cc)
Diffstat (limited to 'oldloader.c')
-rw-r--r--oldloader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/oldloader.c b/oldloader.c
index 6bdea4f09..ce3a78d1d 100644
--- a/oldloader.c
+++ b/oldloader.c
@@ -120,7 +120,7 @@ static byte ReadByteFromFile(LoadgameState *ls)
and just return a byte per time */
if (ls->buffer_cur >= ls->buffer_count) {
/* Read some new bytes from the file */
- int count = fread(ls->buffer, 1, BUFFER_SIZE, ls->file);
+ int count = (int)fread(ls->buffer, 1, BUFFER_SIZE, ls->file);
/* We tried to read, but there is nothing in the file anymore.. */
if (count == 0) {
@@ -376,7 +376,7 @@ static void FixOldVehicles(void)
* - OCL_CHUNK: load an other proc to load a part of the savegame, 'amount' times
* - OCL_ASSERT: to check if we are really at the place we expect to be.. because old savegames are too binary to be sure ;)
*/
-#define OCL_SVAR(type, base, offset) { type, 1, NULL, offsetof(base, offset), NULL }
+#define OCL_SVAR(type, base, offset) { type, 1, NULL, (uint)offsetof(base, offset), NULL }
#define OCL_VAR(type, amount, pointer) { type, amount, pointer, 0, NULL }
#define OCL_END() { OC_END, 0, NULL, 0, NULL }
#define OCL_NULL(amount) { OC_NULL, amount, NULL, 0, NULL }