1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 05:29:11 +00:00

(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.

This commit is contained in:
rubidium
2008-05-27 21:41:00 +00:00
parent 49a0bd7f90
commit 5c5ee7eb57
28 changed files with 88 additions and 83 deletions

View File

@@ -43,7 +43,7 @@ struct Fio {
static Fio _fio;
/* Get current position in file */
uint32 FioGetPos()
size_t FioGetPos()
{
return _fio.pos + (_fio.buffer - _fio.buffer_end);
}
@@ -53,7 +53,7 @@ const char *FioGetFilename(uint8 slot)
return _fio.shortnames[slot];
}
void FioSeekTo(uint32 pos, int mode)
void FioSeekTo(size_t pos, int mode)
{
if (mode == SEEK_CUR) pos += FioGetPos();
_fio.buffer = _fio.buffer_end = _fio.buffer_start + FIO_BUFFER_SIZE;