From 10d4208a7f859e4a47f7f69903e9ef1b0e85e509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ho=C5=A1ek?= Date: Sat, 30 Jun 2012 13:59:02 +0200 Subject: [PATCH] fix seeking in long files on Unix --- HLLib/FileStream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HLLib/FileStream.cpp b/HLLib/FileStream.cpp index 88c7e5d..a650fe5 100644 --- a/HLLib/FileStream.cpp +++ b/HLLib/FileStream.cpp @@ -172,7 +172,7 @@ hlULongLong CFileStream::GetStreamPointer() const LARGE_INTEGER liPointer; return SetFilePointerEx(this->hFile, liOffset, &liPointer, FILE_CURRENT) ? static_cast(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 }