summaryrefslogtreecommitdiffstats
path: root/generic/tclClock.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-07-12 09:22:32 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-07-12 09:22:32 (GMT)
commit640839dd018408ea244ccdc8cc691359b563070a (patch)
tree63e6d698654d1bc464fb785fbcd9a0573e31e871 /generic/tclClock.c
parent132576b7dd0904b4582ca8078a237da10881b313 (diff)
parenta6ed76df7c2b1d8c8f3296a99023f88fc76c3f04 (diff)
downloadtcl-640839dd018408ea244ccdc8cc691359b563070a.zip
tcl-640839dd018408ea244ccdc8cc691359b563070a.tar.gz
tcl-640839dd018408ea244ccdc8cc691359b563070a.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r--generic/tclClock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c
index 2175ed9..075c65b 100644
--- a/generic/tclClock.c
+++ b/generic/tclClock.c
@@ -1520,9 +1520,9 @@ GetJulianDayFromEraYearMonthDay(
* Have to make sure quotient is truncated towards 0 when negative.
* See above bug for details. The casts are necessary.
*/
- if (ym1 >= 0)
+ if (ym1 >= 0) {
ym1o4 = ym1 / 4;
- else {
+ } else {
ym1o4 = - (int) (((unsigned int) -ym1) / 4);
}
#endif