mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Size is never zero at start.
This commit is contained in:
parent
c870b10387
commit
3140dbb34a
@ -330,8 +330,9 @@ private:
|
||||
|
||||
void ReadBig( void* ptr, size_t size )
|
||||
{
|
||||
assert( size > 0 );
|
||||
auto dst = (char*)ptr;
|
||||
while( size > 0 )
|
||||
do
|
||||
{
|
||||
size_t sz;
|
||||
if( m_offset == BufSize )
|
||||
@ -356,6 +357,7 @@ private:
|
||||
dst += sz;
|
||||
size -= sz;
|
||||
}
|
||||
while( size > 0 );
|
||||
}
|
||||
|
||||
void SkipBig( size_t size )
|
||||
|
Loading…
Reference in New Issue
Block a user