mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Added several parentheses to MIN/MAX macros.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* BIRD Library
|
* 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.
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
||||||
*/
|
*/
|
||||||
@@ -15,9 +15,10 @@
|
|||||||
#define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i)))
|
#define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i)))
|
||||||
#define ALIGN(s, a) (((s)+a-1)&~(a-1))
|
#define ALIGN(s, a) (((s)+a-1)&~(a-1))
|
||||||
|
|
||||||
/* Utility-Macros */
|
/* Utility macros */
|
||||||
#define MIN(a,b) ((a<b)?a:b)
|
|
||||||
#define MAX(a,b) ((a>b)?a:b)
|
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||||
|
#define MAX(a,b) (((a)>(b))?(a):(b))
|
||||||
|
|
||||||
/* Functions which don't return */
|
/* Functions which don't return */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user