Commit 6f96399f authored by Marek Vavruša's avatar Marek Vavruša

lib/generic: fixed in del

parent 0042b16a
......@@ -101,6 +101,6 @@
* @return 0 on success, <0 on failure
*/
#define array_del(array, i) \
(i) < (array).len ? ((array).at[i] = (array).at[--(array).len], 0) : -1
(i) < (array).len ? ((array).at[i] = (array).at[(array).len], (array).len -= 1, 0) : -1
/** @} */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment