mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
Small fix: arguments passed in wrong order.
This commit is contained in:
parent
9538e36728
commit
46a53704ad
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ ssize_t list_lsearch(const list_t *list, int compare(const void *key, const void
|
||||||
uint8_t (*array)[size] = list->items;
|
uint8_t (*array)[size] = list->items;
|
||||||
|
|
||||||
for (size_t i = 0; i < list->length; ++i) {
|
for (size_t i = 0; i < list->length; ++i) {
|
||||||
if (compare(&array[i], key) == 0) {
|
if (compare(key, &array[i]) == 0) {
|
||||||
if (ret) {
|
if (ret) {
|
||||||
memcpy(ret, &array[i], size);
|
memcpy(ret, &array[i], size);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue