diff options
Diffstat (limited to 'mesalib/src/glu/sgi/libtess/priorityq.c')
-rw-r--r-- | mesalib/src/glu/sgi/libtess/priorityq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesalib/src/glu/sgi/libtess/priorityq.c b/mesalib/src/glu/sgi/libtess/priorityq.c index 11f0263ac..c6b99cce5 100644 --- a/mesalib/src/glu/sgi/libtess/priorityq.c +++ b/mesalib/src/glu/sgi/libtess/priorityq.c @@ -85,7 +85,7 @@ void pqDeletePriorityQ( PriorityQ *pq ) #define LT(x,y) (! LEQ(y,x)) #define GT(x,y) (! LEQ(x,y)) -#define Swap(a,b) if(1){PQkey *tmp = *a; *a = *b; *b = tmp;}else +#define Swap(a,b) do{PQkey *tmp = *a; *a = *b; *b = tmp;}while(0) /* really __gl_pqSortInit */ int pqInit( PriorityQ *pq ) |