summaryrefslogtreecommitdiff
path: root/vhdlparser/JavaCC.h
diff options
context:
space:
mode:
Diffstat (limited to 'vhdlparser/JavaCC.h')
-rw-r--r--vhdlparser/JavaCC.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vhdlparser/JavaCC.h b/vhdlparser/JavaCC.h
index 2d34634..5889e93 100644
--- a/vhdlparser/JavaCC.h
+++ b/vhdlparser/JavaCC.h
@@ -35,10 +35,10 @@ public:
const JAVACC_CHAR_TYPE EMPTY[] = { 0 };
#ifndef MAX
-#define MAX(a,b) (a>=b?a:b)
+#define MAX(a,b) ((a)>=(b)?(a):(b))
#endif
#ifndef MIN
-#define MIN(a,b) (a<=b?a:b)
+#define MIN(a,b) ((a)<=(b)?(a):(b))
#endif
template<typename T>