From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Arithmetic range error Date: Fri, 08 Feb 2019 14:34:29 +0100 Message-ID: References: <87k1iaft1p.fsf@yandex.com> <8736oye8gm.fsf@yandex.com> <83va1upgdp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="151456"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 08 14:35:00 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gs6J2-000dAO-Bc for ged-emacs-devel@m.gmane.org; Fri, 08 Feb 2019 14:35:00 +0100 Original-Received: from localhost ([127.0.0.1]:56616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gs6J0-0004Yx-Lj for ged-emacs-devel@m.gmane.org; Fri, 08 Feb 2019 08:34:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gs6Ic-0004Mh-Dy for emacs-devel@gnu.org; Fri, 08 Feb 2019 08:34:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gs6Ib-0004e6-Kw for emacs-devel@gnu.org; Fri, 08 Feb 2019 08:34:34 -0500 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:38169) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gs6Ib-0004da-DD; Fri, 08 Feb 2019 08:34:33 -0500 Original-Received: by mail-wr1-x435.google.com with SMTP id v13so3603591wrw.5; Fri, 08 Feb 2019 05:34:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=WCtNR+mOwQ//w/6ooF2KFlaJKUjYgJK12TJ43sLnbLs=; b=O6LtW2aVEdqX8/1UK4XiBYWBpfnjrF//tahlgwvCHlXzHTA1QxWmTnoq6GdOlqZxTp wzZeXKXMCO4oJpkzVA0ayJkZ6YcmeYb2oVoULTVyCSwYnWVv4gLQs+lrLEtPeJ/J6pQJ CR1I8HtnM4oPaLvlA6kDgIOkzottymVi+f50gjKcQ3NiV5AWXkUWYIMsQAa3U5x+rFSA 8N47vXk8w5VH3dl0mp7G1sUoT/yeu4EjuRkkcv642ay0sTDoeEECu6mtl3puziBJhBCi 5hRIC1gr1Vhg/At8uklOimHGAktfqjXuN81/0bpp9e1pw/th8f/71UyDyDeCx1fkSOeF gpww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=WCtNR+mOwQ//w/6ooF2KFlaJKUjYgJK12TJ43sLnbLs=; b=J6F+2MGIeynJ/PY6kbLpaADozF3IQWlSAFr7Q2JgwOm5SCrNWf/PZ/RnR9U85wUcyx NGfaIbiYeMuF1ZMOGE9SaDSqS0vfZHFv+BN6unHTUcu69FkuJwXD/uYNm+7Hj/lTCIM1 7zdByPvB2YwiKKD9YCrkLUmT8EOT4gPTZtqxXLACa/ZrVrM/oI7ar9ljidBJ9P96iT7Z erVP9GYC8smNtjypa30baRs4VH/OlJPt3kXVLbqevHqZi6FAVkaqqBHv50+dTQIP0Tcg RX1Z7UsfVIkP6ZikZc+3uQM2M3S1WIKo/hhpQIQKOowqBMuuQ32h0KW4fV17VaVZ8J19 5IWA== X-Gm-Message-State: AHQUAuY3PK6U13vjg16ISuE92XYA28ALIHUtTd4afartwuW6FKixIVaN nQz+AQNSQvxO+EFro58xPj7IDdsBbB0= X-Google-Smtp-Source: AHgI3IY8m8IouMuiZcFSUtmNybD2zukpCHBlzVy9XxcCypnPfikidrtrfBUFFzxig9rZiTAWuozzrg== X-Received: by 2002:a5d:6803:: with SMTP id w3mr17047688wru.272.1549632871722; Fri, 08 Feb 2019 05:34:31 -0800 (PST) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:508e:f5c1:5162:8e85]) by smtp.gmail.com with ESMTPSA id r14sm1707651wrv.77.2019.02.08.05.34.30 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 08 Feb 2019 05:34:30 -0800 (PST) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <83va1upgdp.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 08 Feb 2019 15:19:14 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::435 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233123 Archived-At: Eli Zaretskii writes: >> From: Robert Pluim >> Date: Fri, 08 Feb 2019 14:15:15 +0100 >> Cc: emacs-devel@gnu.org >>=20 >> > most-positive-fixnum: >> > 536870911 >> > >>=20 >> And that shows that I=CA=BCd forgotten about the tag bits in emacs >> integers. 'floor' is trying to convert 1549541220, which is greater >> than your most-positive-fixnum. >>=20 >> You can either switch to a 64 bit platform, or try rebuilding emacs >> with '--wide-int', which will attempt to use 62 bit integers (or >> switch to the unreleased emacs-27, which has essentially unbounded >> integers). > > All true, but we still didn't drop support for 32-bit platforms > without wide-int (and don't plan to do so any time soon), so we should > fix this for those platforms' sake. The problem comes from org's desire to have the ctime as a single integer. Reverting the commit that changed org to use 'floor' will just result in truncation (but people might not care about that, since we=CA=BCd be dropping the high bits of the timestamp). Ideally org would handle the list form of timestamps, but that=CA=BCs something for org developers to decide. Robert