From 13154b25e3ae551e180b8844079506836f203887 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 15 Sep 2005 13:54:26 +0000 Subject: [PATCH] Fix SWAP macro --- servers/slapd/back-bdb/idl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index 237df18fea..e293407a56 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -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; -- 2.39.5