diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-01-12 16:33:51 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-01-12 16:33:51 (GMT) |
commit | 05dc6d00c28c40fef2b65cf96d5753927599c4d5 (patch) | |
tree | f98150182654efa599cff14bb53a7108babff6a9 /generic/tclDate.c | |
parent | 5608e51a46c5ddb594d05a3d9cbeace701b5dcc6 (diff) | |
download | tcl-05dc6d00c28c40fef2b65cf96d5753927599c4d5.zip tcl-05dc6d00c28c40fef2b65cf96d5753927599c4d5.tar.gz tcl-05dc6d00c28c40fef2b65cf96d5753927599c4d5.tar.bz2 |
Fix [da6f155ca4]: STRING_SIZE() macro: parenthesize numChars usage. Fix more macro's like this.
Diffstat (limited to 'generic/tclDate.c')
-rw-r--r-- | generic/tclDate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclDate.c b/generic/tclDate.c index aa199c3..23cf336 100644 --- a/generic/tclDate.c +++ b/generic/tclDate.c @@ -185,9 +185,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. |