mirror of https://github.com/libAthena/athena.git
FileWriterWin32: Prevent implicit sign conversion within position()
This commit is contained in:
parent
e63ea83f51
commit
462146b644
|
@ -89,7 +89,7 @@ atUint64 FileWriter::position() const {
|
||||||
LARGE_INTEGER li = {};
|
LARGE_INTEGER li = {};
|
||||||
LARGE_INTEGER res;
|
LARGE_INTEGER res;
|
||||||
SetFilePointerEx(m_fileHandle, li, &res, FILE_CURRENT);
|
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); }
|
atUint64 FileWriter::length() const { return utility::fileSize(m_filename); }
|
||||||
|
|
Loading…
Reference in New Issue