diff --git a/include/gp/vector.hpp b/include/gp/vector.hpp index fe9cdb4..05e9d27 100644 --- a/include/gp/vector.hpp +++ b/include/gp/vector.hpp @@ -117,7 +117,7 @@ namespace gp{ } bool grow() { - if(sz == cap) return reserve(sz + (sz >> 1)); + if(sz == cap) return reserve(1 + sz + (sz >> 1)); return true; }