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

Fix integer type warnings

This is necessary to compile Tracy-instrumented code in
codebases built with -Werror.
This commit is contained in:
Felipe Oliveira Carvalho
2020-11-19 16:36:01 +01:00
parent e580dfeed3
commit c9865c5f95
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -98,8 +98,8 @@ public:
private:
tracy_no_inline void AllocMore()
{
const auto cap = ( m_end - m_ptr ) * 2;
const auto size = m_write - m_ptr;
const auto cap = size_t( m_end - m_ptr ) * 2;
const auto size = size_t( m_write - m_ptr );
T* ptr = (T*)tracy_malloc( sizeof( T ) * cap );
memcpy( ptr, m_ptr, size * sizeof( T ) );
tracy_free( m_ptr );