Skip to content
Snippets Groups Projects
Commit 6f96399f authored by Marek Vavruša's avatar Marek Vavruša
Browse files

lib/generic: fixed in del

parent 0042b16a
Branches
Tags
No related merge requests found
......@@ -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
/** @} */
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