On Sun, 19 Jun 2011 19:51:11 -0400, Austin Clements 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