mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 19:49:35 -05:00
Fix prev commit
This commit is contained in:
parent
ab2b541988
commit
9df4ae7d6b
1 changed files with 4 additions and 2 deletions
|
|
@ -1302,10 +1302,12 @@ int bdb_idl_append( ID *a, ID *b )
|
|||
#define SMALL 8
|
||||
#define SWAP(a,b) a^=b;b^=a;a^=b /* Swap integers without temp var */
|
||||
|
||||
#define ISTACK ((BDB_IDL_LOGN+1)*2)
|
||||
|
||||
void
|
||||
bdb_idl_sort( ID *ids )
|
||||
{
|
||||
int istack[(BDB_IDL_LOGN+1)*2];
|
||||
int istack[ISTACK];
|
||||
int i,j,k,l,ir,jstack;
|
||||
ID a;
|
||||
|
||||
|
|
@ -1352,7 +1354,7 @@ bdb_idl_sort( ID *ids )
|
|||
ids[l+1] = ids[j];
|
||||
ids[j] = a;
|
||||
jstack += 2;
|
||||
assert(jstack <= BDB_IDL_LOGN*4);
|
||||
assert(jstack <= ISTACK);
|
||||
if (ir-i+1 >= j-1) {
|
||||
istack[jstack] = ir;
|
||||
istack[jstack-1] = i;
|
||||
|
|
|
|||
Loading…
Reference in a new issue