aboutsummaryrefslogtreecommitdiff
path: root/collections/vector/vector.c
diff options
context:
space:
mode:
Diffstat (limited to 'collections/vector/vector.c')
-rw-r--r--collections/vector/vector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/collections/vector/vector.c b/collections/vector/vector.c
index 9ae30c7..79e31a4 100644
--- a/collections/vector/vector.c
+++ b/collections/vector/vector.c
@@ -135,7 +135,7 @@ void *item;
void* vec_pop(root)
vec *root;
{
- if (!root || root->end == 0) {
+ if (!root || root->end <= 0) {
return NULL;
}