diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-07-12 09:22:32 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-07-12 09:22:32 (GMT) |
commit | 640839dd018408ea244ccdc8cc691359b563070a (patch) | |
tree | 63e6d698654d1bc464fb785fbcd9a0573e31e871 /generic/tclClock.c | |
parent | 132576b7dd0904b4582ca8078a237da10881b313 (diff) | |
parent | a6ed76df7c2b1d8c8f3296a99023f88fc76c3f04 (diff) | |
download | tcl-640839dd018408ea244ccdc8cc691359b563070a.zip tcl-640839dd018408ea244ccdc8cc691359b563070a.tar.gz tcl-640839dd018408ea244ccdc8cc691359b563070a.tar.bz2 |
Merge 8.7
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r-- | generic/tclClock.c | 4 |
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 |