]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Added several parentheses to MIN/MAX macros.
authorMartin Mares <mj@ucw.cz>
Fri, 5 Feb 1999 21:29:19 +0000 (21:29 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 Feb 1999 21:29:19 +0000 (21:29 +0000)
lib/birdlib.h

index f377a99b40a7639874a70a2e13716fc466553606..545ee1b5f3186dca26ec7a0229b2b660dfc777e8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *     BIRD Library
  *
- *     (c) 1998 Martin Mares <mj@ucw.cz>
+ *     (c) 1998--1999 Martin Mares <mj@ucw.cz>
  *
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 #define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i)))
 #define ALIGN(s, a) (((s)+a-1)&~(a-1))
 
-/* Utility-Macros */
-#define MIN(a,b) ((a<b)?a:b)
-#define MAX(a,b) ((a>b)?a:b)
+/* Utility macros */
+
+#define MIN(a,b) (((a)<(b))?(a):(b))
+#define MAX(a,b) (((a)>(b))?(a):(b))
 
 /* Functions which don't return */