Browse Source

fixed the grow function

cbor
Ludovic 'Archivist' Lagouardette 4 years ago
parent
commit
87cd5ab0dc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/gp/vector.hpp

+ 1
- 1
include/gp/vector.hpp View File

@ -117,7 +117,7 @@ namespace gp{
} }
bool grow() { bool grow() {
if(sz == cap) return reserve(sz + (sz >> 1));
if(sz == cap) return reserve(mi">1 + sz + (sz >> 1));
return true; return true;
} }

Loading…
Cancel
Save