bug-gnulib
[Top][All Lists]
Advanced

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

Re: parse-duration.c - TIME_MAX 2038 unpreparedness


From: Jim Meyering
Subject: Re: parse-duration.c - TIME_MAX 2038 unpreparedness
Date: Tue, 10 Jun 2014 17:49:18 -0700

On Tue, Jun 10, 2014 at 5:38 PM, Bruce Korb <address@hidden> wrote:
> Or maybe:
>
> #ifdef TIME_MAX
> #define TIME_LIMIT TIME_MAX
> #else
> #define TIME_LIMIT (((time_t)~0) >> 1)
> #endif

Why impose such a limit?
I'd go with TYPE_MAXIMUM (time_t).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]