bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1.8.0: C++-style cast


From: Kevin Ryde
Subject: Re: 1.8.0: C++-style cast
Date: Thu, 13 Jul 2006 11:48:33 +1000
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Mike Gran <address@hidden> writes:
>
> 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.
>
> -  guile_Inf = (*(X_CAST(double *, DINFINITY)));
> +  guile_Inf = (*((double *) (DINFINITY)));
>
> ...

I don't think it's c++.  I'm guessing X_CAST is an OSF macro.  Dunno
if it does anything good.  John Eaton contributed that, maybe he can
say (Cc'ed).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]