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 Wed, 31 Jul 2013, David Holland wrote:
On Tue, Jul 30, 2013 at 03:30:37PM +0000, Joerg Sonnenberger wrote:
> Modified Files:
>    src/lib/libc/time: localtime.c
>
> Log Message:
> Don't depend on implicit rounding from non-integral float constant.

what on earth is that code trying to do?

If time_t is a floating point type, then round to the nearest second. If time_t is an integral type, then do nothing. There really should be a comment to explain that.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index