From 8f7cc0b7a78a1a59aec9e51864f2f9ebe65709f3 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Thu, 28 May 2009 01:45:36 +0200 Subject: [PATCH] Fixed MAX and MIN macros. --- src/uhub.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uhub.h b/src/uhub.h index 2363b5f..4f54009 100644 --- a/src/uhub.h +++ b/src/uhub.h @@ -130,8 +130,8 @@ #include "adcconst.h" -#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)) #ifdef __cplusplus extern "C" {