mirror of
https://github.com/libAthena/athena.git
synced 2025-12-16 16:37:16 +00:00
Allow llvm-hanafuda to serve as LLVM library
This commit is contained in:
@@ -174,9 +174,9 @@ atUint64 FileReader::readUBytesToBuf(void* buf, atUint64 len)
|
||||
{
|
||||
LARGE_INTEGER fs;
|
||||
GetFileSizeEx(m_fileHandle, &fs);
|
||||
if (m_offset >= fs.QuadPart)
|
||||
if (m_offset >= atUint64(fs.QuadPart))
|
||||
return 0;
|
||||
if (m_offset + len >= fs.QuadPart)
|
||||
if (m_offset + len >= atUint64(fs.QuadPart))
|
||||
len = fs.QuadPart - m_offset;
|
||||
|
||||
size_t block = m_offset / m_blockSize;
|
||||
|
||||
Reference in New Issue
Block a user