timestamp overflows sprinter interface

David Bremner david at tethera.net
Mon Feb 3 05:40:49 PST 2020

Peter Wang <novalazy at gmail.com> writes:

> Hi,
> On a system where time_t is 64-bit and 'int' is a signed 32-bit integer
> type, timestamps beyond some time in 2038 will be serialised to a
> negative value.

I admire your forward thinking!

> The simplest solution appears to be to change the type in the sprinter
> method to int64_t:
>     void (*integer)(struct sprinter *, int64_t);
> Any other suggestions?

Since this is an internal API, I don't really see a big problem with
doing this.


More information about the notmuch mailing list