mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-28 01:04:41 +08:00
Warning fix
This commit is contained in:
parent
fb3837316c
commit
281ba558ea
@ -29,7 +29,7 @@ SerilizedBlock::SerilizedBlock(Block* block):
|
|||||||
m_data(nullptr)
|
m_data(nullptr)
|
||||||
{
|
{
|
||||||
m_size += sizeof(BaseBlockData);
|
m_size += sizeof(BaseBlockData);
|
||||||
auto name_len = strlen(block->getName()) + 1;
|
uint16_t name_len = (uint16_t)strlen(block->getName()) + 1;
|
||||||
m_size += name_len;
|
m_size += name_len;
|
||||||
|
|
||||||
m_data = new char[m_size];
|
m_data = new char[m_size];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user