From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?SmFuIERqw6Rydg==?= Newsgroups: gmane.emacs.devel Subject: Re: Type-error in C code Date: Sat, 13 Nov 2010 20:19:05 +0100 Message-ID: <4CDEE4A9.2030008@swipnet.se> References: <4CDD5951.4030904@swipnet.se> <8762w2jlak.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1289675976 2388 80.91.229.12 (13 Nov 2010 19:19:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Nov 2010 19:19:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thien-Thi Nguyen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 13 20:19:32 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 1PHLdC-0008Os-Uj for ged-emacs-devel@m.gmane.org; Sat, 13 Nov 2010 20:19:32 +0100 Original-Received: from localhost ([127.0.0.1]:45741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHLdA-0002DR-5y for ged-emacs-devel@m.gmane.org; Sat, 13 Nov 2010 14:19:20 -0500 Original-Received: from [140.186.70.92] (port=34743 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHLd4-0002D2-8O for emacs-devel@gnu.org; Sat, 13 Nov 2010 14:19:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHLcz-0003mf-Iz for emacs-devel@gnu.org; Sat, 13 Nov 2010 14:19:14 -0500 Original-Received: from smtprelay-h32.telenor.se ([213.150.131.5]:59747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHLcz-0003m6-CR for emacs-devel@gnu.org; Sat, 13 Nov 2010 14:19:09 -0500 Original-Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-h32.telenor.se (Postfix) with ESMTP id 0B8A8E913E for ; Sat, 13 Nov 2010 20:19:07 +0100 (CET) X-SENDER-IP: [85.225.45.100] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsEzAOtz3kxV4S1kPGdsb2JhbACDPoRSmkMMAQEBATUtrQiQI4EigzVzBI1j X-IronPort-AV: E=Sophos;i="4.59,192,1288566000"; d="scan'208";a="1691506446" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb4.telenor.se with ESMTP; 13 Nov 2010 20:19:07 +0100 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 143217FA05A; Sat, 13 Nov 2010 20:19:06 +0100 (CET) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5 In-Reply-To: <8762w2jlak.fsf@ambire.localdomain> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:132605 Archived-At: Thien-Thi Nguyen skrev 2010-11-12 22.15: > () Jan Dj=C3=A4rv > () Fri, 12 Nov 2010 16:12:17 +0100 > > An Atom is 32 bits. > > ... with the top 3 bits guaranteed to be zero > (X Windows System Protocol, section 3. Common Types). > > In this Emacs, =E2=80=98most-positive-fixnum=E2=80=99 is 536870911, > i.e., #x1fffffff, i.e., 29 1s. > > Coincidence? Interesting. Maybe they used those bits as a type indictor at one point.= =20 Looking at the X source now, I can't find any reson for this. However, I fixed the code to use make_fixnum_or_float anyway. In the fut= ure=20 somebody may come along and wonder why a 32-bit number is put in a Lisp i= nteger. Jan D.