mirror of
https://github.com/topjohnwu/Magisk
synced 2024-11-14 22:28:37 +01:00
Fix vector bug
This commit is contained in:
parent
b94227efc9
commit
a1fd7704e0
@ -26,6 +26,6 @@ void vec_deep_destroy(struct vector *v);
|
||||
|
||||
#define vec_for_each_r(v, e) \
|
||||
e = (v)->data[(v)->size - 1]; \
|
||||
for (size_t _ = (v)->size - 1; _ >= 0; --_, e = (v)->data[_])
|
||||
for (size_t _ = (v)->size; _ > 0; --_, e = (v)->data[_ - 1])
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user