diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-01-12 21:09:28 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-01-12 21:09:28 (GMT) |
commit | 6fb4e398d601951ffbc80a9156685beec71ebe2e (patch) | |
tree | d1557d52d25f268e4d2b384ea0c7c343dc431393 /generic/tclGetDate.y | |
parent | 2161463b5bc87cbef712465067c0b4fde52a699d (diff) | |
parent | 05dc6d00c28c40fef2b65cf96d5753927599c4d5 (diff) | |
download | tcl-6fb4e398d601951ffbc80a9156685beec71ebe2e.zip tcl-6fb4e398d601951ffbc80a9156685beec71ebe2e.tar.gz tcl-6fb4e398d601951ffbc80a9156685beec71ebe2e.tar.bz2 |
Merge 8.6
Diffstat (limited to 'generic/tclGetDate.y')
-rw-r--r-- | generic/tclGetDate.y | 4 |
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. |