From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.devel Subject: Re: Type-error in C code Date: Fri, 12 Nov 2010 16:58:31 +0100 Message-ID: References: <4CDD5951.4030904@swipnet.se> <83oc9uee69.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1289577534 8196 80.91.229.12 (12 Nov 2010 15:58:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Nov 2010 15:58:54 +0000 (UTC) Cc: jan.h.d@swipnet.se, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 12 16:58:46 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PGw1V-0005Jq-LS for ged-emacs-devel@m.gmane.org; Fri, 12 Nov 2010 16:58:45 +0100 Original-Received: from localhost ([127.0.0.1]:53804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGw1U-0005vS-QW for ged-emacs-devel@m.gmane.org; Fri, 12 Nov 2010 10:58:44 -0500 Original-Received: from [140.186.70.92] (port=57124 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGw1M-0005sh-1m for emacs-devel@gnu.org; Fri, 12 Nov 2010 10:58:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGw1L-0005Tw-2a for emacs-devel@gnu.org; Fri, 12 Nov 2010 10:58:35 -0500 Original-Received: from coquelicot-s.easter-eggs.com ([213.215.37.94]:50211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGw1I-0005TV-UX; Fri, 12 Nov 2010 10:58:33 -0500 Original-Received: from cigue.easter-eggs.fr (cigue.easter-eggs.fr [10.0.0.33]) by rose.easter-eggs.fr (Postfix) with ESMTPS id 884DB140D2; Fri, 12 Nov 2010 16:58:27 +0100 (CET) Original-Received: from jdanjou by cigue.easter-eggs.fr with local (Exim 4.72) (envelope-from ) id 1PGw1H-0000Fl-1d; Fri, 12 Nov 2010 16:58:31 +0100 Mail-Followup-To: Eli Zaretskii , jan.h.d@swipnet.se, monnier@iro.umontreal.ca, emacs-devel@gnu.org In-Reply-To: <83oc9uee69.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 12 Nov 2010 17:48:14 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132580 Archived-At: On Fri, Nov 12 2010, Eli Zaretskii wrote: Hi Eli, > Yes, you are wrong. You should only use XSETFASTINT if you know the > value will not overflow a Lisp integer. >=20 > In a nutshell, nothing can work around the basic limitation that only > integer values smaller or equal to most-positive-fixnum can be put > into a Lisp integer. Ok, I did not know that. So XSETFASTINT is really to be fast, not to be bigger. Thanks for the explanation. OTOH, x_fill_property_data deals with floats too, so using a float here sounds like a good solution, as you suggested. --=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info