Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc/time



On Mon, Dec 14, 2009 at 03:56:14PM +0100, Joerg Sonnenberger wrote:
 > > -                               } while ((sse * 10 <= TIME_MAX) &&
 > > +                               } while (((uint64_t)(sse * 10) <= 
 > > TIME_MAX) &&
 > > 
 > > Don't you want ((uint64_t)sse * 10 <= TIME_MAX), that is, cast before
 > > multiplying?
 > 
 > The best approach is to not multiply at all, but divide the constant...

heh, indeed...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index