Re: [python] segfaults at Message.get_date

Subject: Re: [python] segfaults at Message.get_date

Date: Mon, 20 Jun 2011 09:29:22 +0200

To: Austin Clements, Dmitry Kurochkin

Cc: Patrick Totzke, notmuch@notmuchmail.org

From: Sebastian Spaeth


On Sun, 19 Jun 2011 19:51:11 -0400, Austin Clements <amdragon@mit.edu> wrote:
> A double will precisely represent integers up to 2^53, so this
> conversion shouldn't be a problem until the year 285422109 or so.

But given that it works, is it actually necessary, that xapian
apparently pulls an int from the database, returns a std::string to
libnotmuch, which calls a helper function to unserialize it to a double
and casts it to time_t before handing it to the user how probably uses
it as a long?

Can't we easily put in longs and get longs back?

Sebastian
part-000.sig (application/pgp-signature)

Thread: