srdja / Collections-C

A library of generic data structures for the C language.
http://srdja.github.io/Collections-C
GNU Lesser General Public License v3.0
2.8k stars 328 forks source link

Implementation error in `cc_array_reverse` and `cc_deque_reverse` #155

Closed HNYuuu closed 1 year ago

HNYuuu commented 1 year ago

I have confirmed the issue raised in #153, i.e., the cc_array_reverse cannot properly reverse an array in even number of elements.

Moreover, I noticed that this issue also exists in cc_deque_reverse.

The fix is incoming.