Skip to content

Commit

Permalink
fixed a bug in igraph_vector_ptr_pop_back
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Oct 13, 2015
1 parent 0c5edd3 commit bf94d54
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/vector_ptr.c
Expand Up @@ -324,14 +324,11 @@ int igraph_vector_ptr_push_back (igraph_vector_ptr_t* v, void* e) {
}

void *igraph_vector_ptr_pop_back (igraph_vector_ptr_t *v) {
void *tmp;
assert(v != NULL);
assert(v->stor_begin != NULL);
assert(v->stor_begin != v->end);
v->end -= 1;
tmp=*(v->end);

return tmp;
return *(v->end);
}

/**
Expand Down

0 comments on commit bf94d54

Please sign in to comment.