mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Corrections by Kevin Conder <kconder@interaccess.com>
This commit is contained in:
parent
b559c97833
commit
853304bbf4
39 changed files with 386 additions and 386 deletions
|
|
@ -156,7 +156,7 @@ hsearch_r (item, action, retval, htab)
|
|||
hval += item.key[count];
|
||||
}
|
||||
|
||||
/* First hash function: simply take the modul but prevent zero. */
|
||||
/* First hash function: simply take the modulo but prevent zero. */
|
||||
hval %= htab->size;
|
||||
if (hval == 0)
|
||||
++hval;
|
||||
|
|
@ -185,7 +185,7 @@ hsearch_r (item, action, retval, htab)
|
|||
do
|
||||
{
|
||||
/* Because SIZE is prime this guarantees to step through all
|
||||
available indeces. */
|
||||
available indexes. */
|
||||
if (idx <= hval2)
|
||||
idx = htab->size + idx - hval2;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue