X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/2d9f98b592c41a0b79eb6d15122fc00f4f91c836..cff190b8f47416698f3783e1e7711f0864713f73:/LUFA/Common/Common.h diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h index e38d63efe..43df9fbe9 100644 --- a/LUFA/Common/Common.h +++ b/LUFA/Common/Common.h @@ -160,7 +160,7 @@ * \return The larger of the two input parameters */ #if !defined(MAX) || defined(__DOXYGEN__) - #define MAX(x, y) ((x > y) ? x : y) + #define MAX(x, y) (((x) > (y)) ? (x) : (y)) #endif /** Convenience macro to determine the smaller of two values. @@ -174,7 +174,7 @@ * \return The smaller of the two input parameters */ #if !defined(MIN) || defined(__DOXYGEN__) - #define MIN(x, y) ((x < y) ? x : y) + #define MIN(x, y) (((x) < (y)) ? (x) : (y)) #endif #if !defined(STRINGIFY) || defined(__DOXYGEN__)