From ece32b47df44c9eee0d5f355e077ba919bae5d36 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 24 Feb 2020 22:17:34 +0100 Subject: [PATCH] Zero capacity is invalid. --- client/TracyFastVector.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/TracyFastVector.hpp b/client/TracyFastVector.hpp index b548571e..74ee951a 100644 --- a/client/TracyFastVector.hpp +++ b/client/TracyFastVector.hpp @@ -1,6 +1,7 @@ #ifndef __TRACYFASTVECTOR_HPP__ #define __TRACYFASTVECTOR_HPP__ +#include #include #include "../common/TracyAlloc.hpp" @@ -21,6 +22,7 @@ public: , m_write( m_ptr ) , m_end( m_ptr + capacity ) { + assert( capacity != 0 ); } FastVector( const FastVector& ) = delete;