From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?G=C3=B6ktu=C4=9F_Kayaalp?= Newsgroups: gmane.emacs.help Subject: =?utf-8?B?4oCYdHJ1bmNhdGXigJk=?= on (float-time) causes arith range error on 32bit emacs Date: Fri, 29 Jan 2016 05:02:56 +0200 Message-ID: <87twlxqe8v.fsf@xi.bootis> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1454045773 29017 80.91.229.3 (29 Jan 2016 05:36:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jan 2016 05:36:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 29 06:36:03 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aP1iy-0004bi-OL for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jan 2016 06:36:00 +0100 Original-Received: from localhost ([::1]:60063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aP1iy-0002ZL-A8 for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jan 2016 00:36:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOzKZ-0006sI-Po for help-gnu-emacs@gnu.org; Thu, 28 Jan 2016 22:02:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOzKU-0002hs-QG for help-gnu-emacs@gnu.org; Thu, 28 Jan 2016 22:02:39 -0500 Original-Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:59871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOzKU-0002fc-KL for help-gnu-emacs@gnu.org; Thu, 28 Jan 2016 22:02:34 -0500 Original-Received: from mfilter37-d.gandi.net (mfilter37-d.gandi.net [217.70.178.168]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id CE1051720A9 for ; Fri, 29 Jan 2016 04:02:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter37-d.gandi.net Original-Received: from relay4-d.mail.gandi.net ([IPv6:::ffff:217.70.183.196]) by mfilter37-d.gandi.net (mfilter37-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id dNMfIpNenSt6 for ; Fri, 29 Jan 2016 04:02:31 +0100 (CET) X-Originating-IP: 78.180.140.84 Original-Received: from localhost (unknown [78.180.140.84]) (Authenticated sender: self@gkayaalp.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id CBF801720A1 for ; Fri, 29 Jan 2016 04:02:29 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4b98:c:538::196 X-Mailman-Approved-At: Fri, 29 Jan 2016 00:35:37 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108906 Archived-At: Hi all, I've a little package [1]. A user reported to me this error: Contacting host: api.forecast.io:443 Opening TLS connection to `api.forecast.io'... Opening TLS connection with `gnutls-cli --insecure -p 443 api.forecast.io= '...done Opening TLS connection to `api.forecast.io'...done error in process sentinel: let*: Arithmetic range error: "truncate", 1454= 005216.6590292 error in process sentinel: Arithmetic range error: "truncate", 1454005216= .6590292 error in process filter: let*: Arithmetic range error: "truncate", 145400= 5218.8166773 error in process filter: Arithmetic range error: "truncate", 1454005218.8= 166773 error in process sentinel: let*: Arithmetic range error: "truncate", 1454= 005220.8661127 error in process sentinel: Arithmetic range error: "truncate", 1454005220= .8661127 He is on a 32bit pc. These errors come from a function in which I truncate some timestamps for some math that requires integers. Is there a way to convert it to integer w/o error on a 32 bit machine? Interestingly, these values don't seem to exceed the limits for 32 bit integers, am I wrong? Is there sth. different going on that I did not catch? I'm rather novice with elisp, so sorry if I'm missing sth. obvious and blundering the list. [1] http://gkayaalp.com/emacs.html#forecast.el Cheers, -gk --=20 =C4=B0. G=C3=B6ktu=C4=9F Kayaalp. http://gkayaalp.com/