0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 00:31:02 +08:00

Warning fix

This commit is contained in:
Sergey Yagovtsev 2016-06-22 23:58:07 +03:00
parent fb3837316c
commit 281ba558ea

View File

@ -29,7 +29,7 @@ SerilizedBlock::SerilizedBlock(Block* block):
m_data(nullptr)
{
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_data = new char[m_size];