Re: [chrony-dev] [PATCH] Fix rounding in UTI_DoubleToTimeval() |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
On Fri, Jul 24, 2015 at 12:05:20AM +1200, Bryan Christianson wrote:
> > On 23/07/2015, at 11:59 pm, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
> > Does Mac OS X have 32-bit time_t and 64-bit long? Or it's the other
> > way around?
>
> 64 bit long, 32 bit time_t.
That's an unusual combination. I've seen time_t longer than long, but
not shorter. I hope they know about year 2038 :).
> It would be better to cast to time_t but I'm not sure how portable that would be.
I think tv_sec in struct timeval is always time_t, so casting to
time_t shouldn't change the result. Or does it fix a compiler warning?
--
Miroslav Lichvar
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.