mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 15:32:40 +02:00
slightly different approach to windows warning fix
This commit is contained in:
parent
1f77505871
commit
4a6cc99be6
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ void fsBinaryStream::received(long int sz, const char *data) {
|
|||
new_end = m_end + sz;
|
||||
}
|
||||
|
||||
if (new_end > Size(m_buffer.size())) m_buffer.resize((new_end * 15 / 10)); // HIFI: to get 1.5 without warnings
|
||||
if (new_end > Size(m_buffer.size())) m_buffer.resize((int)(1.5f * (float)new_end)); // HIFI: to get 1.5 without warnings
|
||||
|
||||
memcpy(&m_buffer[0] + m_end, data, sz);
|
||||
m_end += sz;
|
||||
|
|
Loading…
Reference in a new issue