[4423] in Kerberos

home help back first fref pref prev next nref lref last post

Re: bug in gmt_mktime.c (oooops... a typo)

daemon@ATHENA.MIT.EDU (David Parter)
Tue Jan 3 01:15:45 1995

Cc: krb5-bugs@MIT.EDU, kerberos@MIT.EDU
Date: Tue, 03 Jan 1995 00:07:47 -0600
From: David Parter <dparter@cs.wisc.edu>

sorry to bother you all with a correction, but I wrote:

> The line should be

>   accum += ((t->tm_year - 1) - 69) / 4;

> which is the same as:
>   accum += (t->tm_year - 69) / 4;

which is of course WRONG. Lets try again:

The line should be

  accum += ((t->tm_year - 1) - 68) / 4;

which is the same as:
  accum += (t->tm_year - 69) / 4;


	--david

--------
david parter                                         dparter@cs.wisc.edu
university of wisconsin -- madison          voice: 608-262-0608/262-2389
computer sciences department                           fax: 608-262-6626
    postmaster, hostmaster, xunet/blanca, mentor, www, gopher, ftp, 
    compilers, security, software planning, training ...

home help back first fref pref prev next nref lref last post