From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Arithmetic range error Date: Thu, 07 Feb 2019 21:55:22 +0100 Message-ID: <87womb5net.fsf@nicolasgoaziou.fr> References: <87ef8jwzs5.fsf@yandex.com> <874l9f68ok.fsf@kyleam.com> <87ftszwi0p.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:41978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grqi4-0002d8-12 for emacs-orgmode@gnu.org; Thu, 07 Feb 2019 15:55:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grqi1-000581-J5 for emacs-orgmode@gnu.org; Thu, 07 Feb 2019 15:55:47 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:58585) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1grqhu-0004y3-Ar for emacs-orgmode@gnu.org; Thu, 07 Feb 2019 15:55:41 -0500 In-Reply-To: <87ftszwi0p.fsf@yandex.com> (Colin Baxter's message of "Thu, 07 Feb 2019 18:49:42 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Colin Baxter Cc: emacs-orgmode@gnu.org Hello, Colin Baxter writes: > I can now confirm that if the above commit is reversed then my > Arithmetic range error disappears. > > diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el > index d9fc8d2..2144aa1 100644 > --- a/lisp/ox-publish.el > +++ b/lisp/ox-publish.el > @@ -1366,7 +1366,9 @@ does not exist." > (expand-file-name (or (file-symlink-p file) file) > (file-name-directory file))))) > (if (not attr) (error "No such file: \"%s\"" file) > - (floor (float-time (file-attribute-modification-time attr)))))) > + (+ (ash (car (nth 5 attr)) 16) > + (cadr (nth 5 attr)))))) > +;; (floor (float-time (file-attribute-modification-time attr)))))) I think it is worth reporting it to Emacs devel list, because the commented code doesn't look wrong. Regards, -- Nicolas Goaziou