diff options
| -rw-r--r-- | common/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/util.h b/common/util.h index 85ea599278..3218a8546d 100644 --- a/common/util.h +++ b/common/util.h @@ -35,7 +35,7 @@ #define MAX(a,b) (((a)>(b))?(a):(b)) #endif -#define SWAP(a,b) do{int tmp=a; a=b; b=tmp; } while(0) +static inline void SWAP(int &a, int &b) { int tmp=a; a=b; b=tmp; } #define ARRAYSIZE(x) (sizeof(x)/sizeof(x[0])) #if USE_555_FORMAT |
