diff mbox

[dmraid,3/4] Fix min/max macros

Message ID 20091217054526.545361172@suse.de (mailing list archive)
State New, archived
Headers show

Commit Message

NeilBrown Dec. 17, 2009, 5:44 a.m. UTC
None
diff mbox

Patch

--- dmraid-16.orig/lib/internal.h
+++ dmraid-16/lib/internal.h
@@ -50,8 +50,8 @@ 
 #define	u_int64_t	uint64_t
 #endif
 
-#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))
 #define ARRAY_SIZE(a)   (sizeof(a) / sizeof(*a))
 #define ARRAY_END(a)   (a + ARRAY_SIZE(a))