From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.bugs Subject: 1.8.0: C++-style cast Date: Tue, 11 Jul 2006 20:58:51 -0700 (PDT) Message-ID: <20060712035851.89960.qmail@web37901.mail.mud.yahoo.com> Reply-To: spikegran@earthlink.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1152676753 15542 80.91.229.2 (12 Jul 2006 03:59:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Jul 2006 03:59:13 +0000 (UTC) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jul 12 05:59:11 2006 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G0VsQ-0003AM-H7 for guile-bugs@m.gmane.org; Wed, 12 Jul 2006 05:59:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G0VsP-0003TQ-Qo for guile-bugs@m.gmane.org; Tue, 11 Jul 2006 23:59:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G0VsL-0003TA-RF for bug-guile@gnu.org; Tue, 11 Jul 2006 23:59:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G0VsJ-0003Sl-Gp for bug-guile@gnu.org; Tue, 11 Jul 2006 23:59:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G0VsJ-0003Si-C2 for bug-guile@gnu.org; Tue, 11 Jul 2006 23:58:59 -0400 Original-Received: from [209.191.124.96] (helo=web37901.mail.mud.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1G0Vtl-0002Xn-Fk for bug-guile@gnu.org; Wed, 12 Jul 2006 00:00:29 -0400 Original-Received: (qmail 89962 invoked by uid 60001); 12 Jul 2006 03:58:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=GixlBwYVS1YNb850B2lxuIYeh/J1QZXOS80X5cUE1Dy+d7GCpKW0I63qXXMPR/5yCUM+hidOah/QLEZzfSI4cNKN94JTpQTYig1G4C85zTy+2CYpTFB7yGXRwRYep62Y+eLqhXOUvuFWY8XAF2B4jZItTY3yMQcyp3q2z8zOjyM= ; Original-Received: from [199.46.200.238] by web37901.mail.mud.yahoo.com via HTTP; Tue, 11 Jul 2006 20:58:51 PDT Original-To: Bug Guile X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3281 Archived-At: In guile-core-1.8-20060711, in libguile/numbers.c, in guile_ieee_init(), a C++ style cast is used instead of a C-style cast. Also, a declaration block occurs in a code block. These bend the rules of old-school ANSI C. --- numbers.c.orig 2006-05-09 16:15:10.000000000 -0700 +++ numbers.c 2006-07-11 20:54:36.000000000 -0700 @@ -598,7 +598,7 @@ #elif HAVE_DINFINITY /* OSF */ extern unsigned int DINFINITY[2]; - guile_Inf = (*(X_CAST(double *, DINFINITY))); + guile_Inf = (*((double *) (DINFINITY))); #else double tmp = 1e+10; guile_Inf = tmp; @@ -619,9 +619,11 @@ /* C99 NAN, when available */ guile_NaN = NAN; #elif HAVE_DQNAN - /* OSF */ - extern unsigned int DQNAN[2]; - guile_NaN = (*(X_CAST(double *, DQNAN))); + { + /* OSF */ + extern unsigned int DQNAN[2]; + guile_NaN = (*((double *)(DQNAN))); + } #else guile_NaN = guile_Inf / guile_Inf; #endif __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile