diff options
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 0669ffe..86eed73 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 | 
