diff options
author | truelight <truelight@openttd.org> | 2006-08-20 12:09:32 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-20 12:09:32 +0000 |
commit | 5fb6c9e1cc073ad96d62efc423e87d79d38d435a (patch) | |
tree | 8ea819b5d596c612f5f825b3e4881663c4af5722 /oldloader.c | |
parent | b83703b215bec2b7a6147a6b4a7ec60832da5230 (diff) | |
download | openttd-5fb6c9e1cc073ad96d62efc423e87d79d38d435a.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.c | 4 |
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 } |