[prev in list] [next in list] [prev in thread] [next in thread]
List: netbsd-source-changes
Subject: Re: CVS commit: src/lib/libc/time
From: Alan Barrett <apb () cequrux ! com>
Date: 2013-07-31 7:53:28
Message-ID: 20130731075328.GE22294 () apb-laptoy ! apb ! alt ! za
[Download RAW message or body]
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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic