From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Daniel_Llorens_del_R=EDo?= Newsgroups: gmane.lisp.guile.devel Subject: Re: bug in scm_arrray_handle_[srfi tag]_elements Date: Tue, 12 Jan 2010 00:49:33 +0100 Message-ID: <78A42C13-02F1-46A8-8E9C-B457687B0B5D@bluewin.ch> References: <0JCC00MW3LBEPQ@imap0.epfl.ch> <992C8B41-B3DB-4482-9C6B-679B1CE9E7A9@bluewin.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1263253794 5836 80.91.229.12 (11 Jan 2010 23:49:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jan 2010 23:49:54 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jan 12 00:49:47 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NUU0v-0000gV-0f for guile-devel@m.gmane.org; Tue, 12 Jan 2010 00:49:37 +0100 Original-Received: from localhost ([127.0.0.1]:44363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUU0v-0001iG-Qo for guile-devel@m.gmane.org; Mon, 11 Jan 2010 18:49:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUU0s-0001gC-PQ for guile-devel@gnu.org; Mon, 11 Jan 2010 18:49:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUU0n-0001cq-Ee for guile-devel@gnu.org; Mon, 11 Jan 2010 18:49:33 -0500 Original-Received: from [199.232.76.173] (port=50840 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUU0n-0001cc-8J for guile-devel@gnu.org; Mon, 11 Jan 2010 18:49:29 -0500 Original-Received: from tr16.bluewin.ch ([195.186.19.83]:40539) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUU0m-0005wL-8A for guile-devel@gnu.org; Mon, 11 Jan 2010 18:49:28 -0500 Original-Received: from [192.168.1.36] (83.79.158.80) by tr16.bluewin.ch (The Blue Window 8.5.119.018.5.119.01) (authenticated as daniel.llorens) id 4B384F510074C450; Mon, 11 Jan 2010 23:49:26 +0000 In-Reply-To: X-Mailer: Apple Mail (2.753.1) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9868 Archived-At: On 12 Jan, 2010, at 0:22, Andy Wingo wrote: > I've fixed the issues compiling e.g. #@2(1 2 3) and the like, Thanks for the great support. > and applied this patch as well. Thanks for the reports. > > Anything else? :) Yeah=85 your patch is wrong :) - return h-=20 >elements; \ + return ((const ctype*) h->elements) + h-=20 >base; \ I wrote it this way at first, too, but it doesn't work for c32/c64 =20 because ctype for those is float/double. Calling the element size =20 function as I did is clunky, since the type is already known, but =20 maybe one could access the table in uniform.c directly or something. Regards, Daniel=