fix seeking in long files on Unix
This commit is contained in:
parent
b85b1390ac
commit
10d4208a7f
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue