mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-23 02:10:40 +00:00
32-bit compile fix
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -182,7 +182,7 @@ public:
|
||||
if(!success)
|
||||
{
|
||||
if(data)
|
||||
memset(data, 0, numBytes);
|
||||
memset(data, 0, (size_t)numBytes);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user