mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
make pa_idxset_trivial_compare_func() do a full compare instea of just equakity check
This commit is contained in:
parent
183f2e0bff
commit
3e16d2f40d
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ unsigned pa_idxset_trivial_hash_func(const void *p) {
|
|||
}
|
||||
|
||||
int pa_idxset_trivial_compare_func(const void *a, const void *b) {
|
||||
return a != b;
|
||||
return a < b ? -1 : (a > b ? 1 : 0);
|
||||
}
|
||||
|
||||
pa_idxset* pa_idxset_new(pa_hash_func_t hash_func, pa_compare_func_t compare_func) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue