summaryrefslogtreecommitdiffstats
path: root/generic/tclGetDate.y
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-12 21:09:28 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-12 21:09:28 (GMT)
commit6fb4e398d601951ffbc80a9156685beec71ebe2e (patch)
treed1557d52d25f268e4d2b384ea0c7c343dc431393 /generic/tclGetDate.y
parent2161463b5bc87cbef712465067c0b4fde52a699d (diff)
parent05dc6d00c28c40fef2b65cf96d5753927599c4d5 (diff)
downloadtcl-6fb4e398d601951ffbc80a9156685beec71ebe2e.zip
tcl-6fb4e398d601951ffbc80a9156685beec71ebe2e.tar.gz
tcl-6fb4e398d601951ffbc80a9156685beec71ebe2e.tar.bz2
Merge 8.6
Diffstat (limited to 'generic/tclGetDate.y')
-rw-r--r--generic/tclGetDate.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclGetDate.y b/generic/tclGetDate.y
index 44757da..0a5a11e 100644
--- a/generic/tclGetDate.y
+++ b/generic/tclGetDate.y
@@ -136,9 +136,9 @@ typedef struct DateInfo {
#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))
/*
* An entry in the lexical lookup table.