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.
same as
nibblebits/DragonCompiler#88 (comment)
Hi,
I noticed that the function
vector_pop_valuedoes not return a value, even though its signature suggests it should.Reference:
PeachCompiler/helpers/vector.c
Line 331 in 81d61c6
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.
same as
nibblebits/DragonCompiler#88 (comment)