This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
gplib
Watch
1
Star
1
Fork
0
Code
Issues
8
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
fixed the grow function
cbor
Ludovic 'Archivist' Lagouardette
4 years ago
parent
cf98c43db1
commit
87cd5ab0dc
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
;
}
}
Write
Preview
Loading…
Cancel
Save