summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tclDate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclDate.c b/generic/tclDate.c
index 7357a61..6ca14ea 100644
--- a/generic/tclDate.c
+++ b/generic/tclDate.c
@@ -121,9 +121,9 @@
#define TM_YEAR_BASE 1900
-#define HOUR(x) ((int) (60 * x))
+#define HOUR(x) ((int) (60 * (x)))
#define SECSPERDAY (24L * 60L * 60L)
-#define IsLeapYear(x) ((x % 4 == 0) && (x % 100 != 0 || x % 400 == 0))
+#define IsLeapYear(x) (((x) % 4 == 0) && ((x) % 100 != 0 || (x) % 400 == 0))
#define yyIncrFlags(f) \
do { \