mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
Get rid of implicit size conversion warnings in ipak entry read stream
This commit is contained in:
parent
dfaf5eba6b
commit
29e5898c2b
@ -337,7 +337,7 @@ std::streamsize IPakEntryReadStream::xsgetn(char* ptr, const std::streamsize cou
|
|||||||
assert(static_cast<size_t>(count - countRead) >= static_cast<size_t>(sizeToRead));
|
assert(static_cast<size_t>(count - countRead) >= static_cast<size_t>(sizeToRead));
|
||||||
memcpy(&destBuffer[countRead], &m_current_command_buffer[m_current_command_offset], static_cast<size_t>(sizeToRead));
|
memcpy(&destBuffer[countRead], &m_current_command_buffer[m_current_command_offset], static_cast<size_t>(sizeToRead));
|
||||||
countRead += sizeToRead;
|
countRead += sizeToRead;
|
||||||
m_current_command_offset += sizeToRead;
|
m_current_command_offset += static_cast<size_t>(sizeToRead);
|
||||||
m_file_offset += sizeToRead;
|
m_file_offset += sizeToRead;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -397,7 +397,7 @@ std::streambuf::pos_type IPakEntryReadStream::seekpos(const pos_type pos, std::i
|
|||||||
|
|
||||||
if (pos <= m_file_head)
|
if (pos <= m_file_head)
|
||||||
{
|
{
|
||||||
m_current_command_offset = m_current_command_length - (m_file_head - pos);
|
m_current_command_offset = m_current_command_length - static_cast<size_t>(m_file_head - pos);
|
||||||
m_file_offset = pos;
|
m_file_offset = pos;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user