FileWriterWin32: Prevent implicit sign conversion within position()

This commit is contained in:
Lioncash 2019-09-07 07:54:08 -04:00
parent e63ea83f51
commit 462146b644
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ atUint64 FileWriter::position() const {
LARGE_INTEGER li = {};
LARGE_INTEGER res;
SetFilePointerEx(m_fileHandle, li, &res, FILE_CURRENT);
return res.QuadPart;
return static_cast<atUint64>(res.QuadPart);
}
atUint64 FileWriter::length() const { return utility::fileSize(m_filename); }