Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2018-04-29 02:38:35 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2018-04-29 02:38:35 +0300
commitdc1396012e837beb0b438ce6ec9f4830b9292c24 (patch)
tree3853468eae13f36d9ad448ca5f3d3a6afa8b545a /server/TracyVector.hpp
parentd64f0390da123e74aa61c968dcfd92dc6a8e5999 (diff)
Add assert checking that there's space.
Diffstat (limited to 'server/TracyVector.hpp')
-rw-r--r--server/TracyVector.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/TracyVector.hpp b/server/TracyVector.hpp
index c96c251d..254ce4ec 100644
--- a/server/TracyVector.hpp
+++ b/server/TracyVector.hpp
@@ -85,6 +85,7 @@ public:
void push_back_no_space_check( const T& v )
{
+ assert( m_size < Capacity() );
m_ptr[m_size++] = v;
}