0
0
mirror of https://github.com/yse/easy_profiler.git synced 2025-01-14 00:27:55 +08:00
This commit is contained in:
Victor Zarubkin 2017-06-07 20:51:45 +03:00
parent 48fb240ca0
commit ac31aee77c

View File

@ -389,7 +389,7 @@ public:
// When stack gone empty we can resize buffer to use enough space in the future
free(m_buffer);
m_maxcapacity = m_capacity = std::max(m_maxcapacity, m_capacity << 1);
m_buffer = static_cast<T*>(malloc(m_buffer, m_capacity * sizeof(T)));
m_buffer = static_cast<T*>(malloc(m_capacity * sizeof(T)));
}
return;