Skip to content
Snippets Groups Projects
Commit 13154b25 authored by Howard Chu's avatar Howard Chu
Browse files

Fix SWAP macro

parent 4a7f5e33
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment