1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Allow direct access to data size table index.

This commit is contained in:
Bartosz Taudul
2017-09-14 01:05:08 +02:00
parent 89dd244693
commit 10b88754d8
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ void Profiler::Worker()
char* ptr = buf;
for( int i=0; i<sz; i++ )
{
const auto dsz = QueueDataSize[(uint8_t)item[i].hdr.type];
const auto dsz = QueueDataSize[item[i].hdr.idx];
memcpy( ptr, item+i, dsz );
ptr += dsz;
}