32-bit compile fix

This commit is contained in:
baldurk
2020-03-17 10:15:01 +00:00
parent 6e106d4c6c
commit fb3563fb52
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ bool StreamReader::ReadLargeBuffer(void *buffer, uint64_t length)
// don't actually read if the destination buffer is NULL
if(dest)
{
memcpy(dest, m_BufferHead, avail);
memcpy(dest, m_BufferHead, (size_t)avail);
dest += avail;
}
length -= avail;
+1 -1
View File
@@ -182,7 +182,7 @@ public:
if(!success)
{
if(data)
memset(data, 0, numBytes);
memset(data, 0, (size_t)numBytes);
return false;
}