mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Zero capacity is invalid.
This commit is contained in:
parent
4695f60937
commit
ece32b47df
@ -1,6 +1,7 @@
|
|||||||
#ifndef __TRACYFASTVECTOR_HPP__
|
#ifndef __TRACYFASTVECTOR_HPP__
|
||||||
#define __TRACYFASTVECTOR_HPP__
|
#define __TRACYFASTVECTOR_HPP__
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include "../common/TracyAlloc.hpp"
|
#include "../common/TracyAlloc.hpp"
|
||||||
@ -21,6 +22,7 @@ public:
|
|||||||
, m_write( m_ptr )
|
, m_write( m_ptr )
|
||||||
, m_end( m_ptr + capacity )
|
, m_end( m_ptr + capacity )
|
||||||
{
|
{
|
||||||
|
assert( capacity != 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
FastVector( const FastVector& ) = delete;
|
FastVector( const FastVector& ) = delete;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user