summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h
index 309f49c5..18d377c2 100644
--- a/include/common.h
+++ b/include/common.h
@@ -1,4 +1,4 @@
-/* $Id: common.h,v 1.6 2003/05/26 05:30:22 in2 Exp $ */
+/* $Id$ */
#ifndef INCLUDE_COMMON_H
#define INCLUDE_COMMON_H
@@ -175,10 +175,10 @@
#define MAX_MODES 127
#ifndef MIN
-#define MIN(a,b) ((a<b)?a:b)
+#define MIN(a,b) (((a)<(b))?(a):(b))
#endif
#ifndef MAX
-#define MAX(a,b) ((a>b)?a:b)
+#define MAX(a,b) (((a)>(b))?(a):(b))
#endif
#define char_lower(c) ((c >= 'A' && c <= 'Z') ? c|32 : c)