From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Type-error in C code Date: Fri, 12 Nov 2010 18:20:48 +0200 Message-ID: <83lj4yecnz.fsf@gnu.org> References: <4CDD5951.4030904@swipnet.se> <83oc9uee69.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1289578859 15311 80.91.229.12 (12 Nov 2010 16:20:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Nov 2010 16:20:59 +0000 (UTC) Cc: jan.h.d@swipnet.se, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: John Yates Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 12 17:20:55 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 1PGwMw-0002wZ-A2 for ged-emacs-devel@m.gmane.org; Fri, 12 Nov 2010 17:20:54 +0100 Original-Received: from localhost ([127.0.0.1]:44358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGwMv-0006Lq-E3 for ged-emacs-devel@m.gmane.org; Fri, 12 Nov 2010 11:20:53 -0500 Original-Received: from [140.186.70.92] (port=33495 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGwMo-0006KA-S8 for emacs-devel@gnu.org; Fri, 12 Nov 2010 11:20:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGwMn-0003WN-N9 for emacs-devel@gnu.org; Fri, 12 Nov 2010 11:20:46 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:39620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGwMn-0003W9-Ei for emacs-devel@gnu.org; Fri, 12 Nov 2010 11:20:45 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LBS0060051PRY00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 12 Nov 2010 18:20:43 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.249.126]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LBS006L65EI6B90@a-mtaout22.012.net.il>; Fri, 12 Nov 2010 18:20:43 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:132582 Archived-At: > Date: Fri, 12 Nov 2010 11:06:26 -0500 > From: John Yates > > On Fri, Nov 12, 2010 at 10:58 AM, Julien Danjou wrote: > > > OTOH, x_fill_property_data deals with floats too, so using a float here > > sounds like a good solution, as you suggested. > > Alternatively you could check the atom's value and so long as it is in > range you could generate an elisp integer, falling back to a float > only when the atom is too large. That's what I meant, actually (we already do such things in other places in Emacs sources).