Closed sarckk closed 3 years ago
The order of arguments for GROW_ARRAY in the example solution for Ch14 Challenge 1 (run-length encoding) is wrong. type should come before the pointer parameter as per the macro definition:
GROW_ARRAY
type
pointer
#define GROW_ARRAY(type, pointer, oldCount, newCount) \ (type*)reallocate(pointer, sizeof(type) * (oldCount), \ sizeof(type) * (newCount))
Thank you!
The order of arguments for
GROW_ARRAY
in the example solution for Ch14 Challenge 1 (run-length encoding) is wrong.type
should come before thepointer
parameter as per the macro definition: