mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 03:59:34 -05:00
Fix SWAP macro
This commit is contained in:
parent
4a7f5e33bd
commit
13154b25e3
1 changed files with 2 additions and 2 deletions
|
|
@ -1295,14 +1295,14 @@ int bdb_idl_append( ID *a, ID *b )
|
|||
/* Quicksort + Insertion sort for small arrays */
|
||||
|
||||
#define SMALL 8
|
||||
#define SWAP(a,b) a^=b;b^=a;a^=b /* Swap integers without temp var */
|
||||
#define SWAP(a,b) itmp=(a);(a)=(b);(b)=itmp
|
||||
|
||||
void
|
||||
bdb_idl_sort( ID *ids, ID *tmp )
|
||||
{
|
||||
int *istack = (int *)tmp;
|
||||
int i,j,k,l,ir,jstack;
|
||||
ID a;
|
||||
ID a, itmp;
|
||||
|
||||
if ( BDB_IDL_IS_RANGE( ids ))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue