fix seeking in long files on Unix

This commit is contained in:
Ondřej Hošek 2012-06-30 13:59:02 +02:00
parent b85b1390ac
commit 10d4208a7f
1 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ hlULongLong CFileStream::GetStreamPointer() const
LARGE_INTEGER liPointer;
return SetFilePointerEx(this->hFile, liOffset, &liPointer, FILE_CURRENT) ? static_cast<hlULongLong>(liPointer.QuadPart) : 0;
#else
return (hlUInt)lseek(this->iFile, 0, SEEK_CUR);
return (hlULongLong)lseek(this->iFile, 0, SEEK_CUR);
#endif
}
@ -218,7 +218,7 @@ hlULongLong CFileStream::Seek(hlLongLong iOffset, HLSeekMode eSeekMode)
break;
}
return (hlUInt)lseek(this->iFile, iOffset, iMode);
return (hlULongLong)lseek(this->iFile, iOffset, iMode);
#endif
}