Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D0B5E431FD0 for ; Mon, 20 Jun 2011 00:29:28 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.09 X-Spam-Level: X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PbSLK8n93MG9 for ; Mon, 20 Jun 2011 00:29:28 -0700 (PDT) Received: from homiemail-a75.g.dreamhost.com (caiajhbdcbef.dreamhost.com [208.97.132.145]) by olra.theworths.org (Postfix) with ESMTP id 58A2D431FB6 for ; Mon, 20 Jun 2011 00:29:28 -0700 (PDT) Received: from homiemail-a75.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a75.g.dreamhost.com (Postfix) with ESMTP id 7649C5EC080; Mon, 20 Jun 2011 00:29:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sspaeth.de; h=from:to:cc:subject :in-reply-to:references:date:message-id:mime-version: content-type; q=dns; s=sspaeth.de; b=nWQapD8ySzybxKXa0A7xPCy2D1f TdvWsbVGTIyryCu9RVK/kLsWKWy2+SEkkRQK5IiBMXqMZQso8n3SxZlr3UIuSiVr S0VJ1zu13RBQYbzWdV/Xh05OZet8Xc36U+xG5yr7r5+SqmdIsfmP1v/AJIHpOFxH n3tDa3DilAJKW2lU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sspaeth.de; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version: content-type; s=sspaeth.de; bh=MCwiHjUchT22sZNTXf/jAmNieAU=; b=C IQOWAk3wpjSXH9bxU8qpLO/XTsOxgTZHSGNWg7HOeisszDcI+a0/wZOG3leOlOwG 617GPGkgc7EceCjJDU6NPhXerVuO8hB+wR/I6EZhNg5meyRzARCeMXXvsR5GI8I2 AgyrhkHRqcqQ6+AtcjCjKc2VOByZ2SymEYmUEMu4sc= Received: from spaetzbook.sspaeth.de (mtec-hg-docking-1-dhcp-253.ethz.ch [129.132.133.253]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fax@sspaeth.de) by homiemail-a75.g.dreamhost.com (Postfix) with ESMTPSA id 9D22E5EC07E; Mon, 20 Jun 2011 00:29:25 -0700 (PDT) Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation); Mon, 20 Jun 2011 09:29:22 +0200 From: Sebastian Spaeth To: Austin Clements , Dmitry Kurochkin Subject: Re: [python] segfaults at Message.get_date In-Reply-To: References: <20110616215439.GA26997@brick> <87boxxq833.fsf@SSpaeth.de> <20110617161024.GA8154@optimusprime> <87hb7n300m.fsf@SSpaeth.de> <87hb7m5f4s.fsf@gmail.com> User-Agent: Notmuch/0.5-233-gb404931 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Mon, 20 Jun 2011 09:29:22 +0200 Message-ID: <878vsxvu3x.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: Patrick Totzke , notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2011 07:29:29 -0000 --=-=-= 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 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk3+9tIACgkQVYX1jMgnoGKHQwCfcXqonuzE7dc0sotFPsG8/hWE PJkAn3snuO39aX49i25Z2itS70LtWmN/ =3FSr -----END PGP SIGNATURE----- --=-=-=--