Skip to content

vector_pop_value does not return a value #88

Description

@lucaspalomodevelop

Hi,
I noticed that the function vector_pop_value does not return a value, even though its signature suggests it should.

Reference:

int vector_pop_value(struct vector* vector, void* val)

Expected behavior:
The function should return the popped value to the caller.

Actual behavior:
The function returns nothing (implicit void / missing return statement).

Suggested fix:
Add a return statement that returns the popped value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions