From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Type-error in C code Date: Sat, 13 Nov 2010 04:44:21 +0900 Message-ID: <87vd42cooa.fsf@catnip.gol.com> References: <4CDD5951.4030904@swipnet.se> <83oc9uee69.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1289591080 14497 80.91.229.12 (12 Nov 2010 19:44:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Nov 2010 19:44:40 +0000 (UTC) Cc: Eli Zaretskii , 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 20:44:36 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 1PGzY3-0005S7-Rk for ged-emacs-devel@m.gmane.org; Fri, 12 Nov 2010 20:44:36 +0100 Original-Received: from localhost ([127.0.0.1]:35835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGzY3-0000gT-DX for ged-emacs-devel@m.gmane.org; Fri, 12 Nov 2010 14:44:35 -0500 Original-Received: from [140.186.70.92] (port=59380 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGzXx-0000Zr-20 for emacs-devel@gnu.org; Fri, 12 Nov 2010 14:44:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGzXw-0004t3-3R for emacs-devel@gnu.org; Fri, 12 Nov 2010 14:44:28 -0500 Original-Received: from smtp12.dentaku.gol.com ([203.216.5.74]:34383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGzXu-0004sX-HT; Fri, 12 Nov 2010 14:44:26 -0500 Original-Received: from 123.230.98.87.eo.eaccess.ne.jp ([123.230.98.87] helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku) id 1PGzXr-0004Yl-3o; Sat, 13 Nov 2010 04:44:23 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id A2A39DF91; Sat, 13 Nov 2010 04:44:21 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: (John Yates's message of "Fri, 12 Nov 2010 11:06:26 -0500") Original-Lines: 13 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:132588 Archived-At: John Yates writes: > 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. ... and presumably on 64-bit systems (increasingly the norm), a 32-bit quantity would _always_ fit. -miles -- Mayonnaise, n. One of the sauces that serve the French in place of a state religion.