[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
1.8.0: C++-style cast
From: |
Mike Gran |
Subject: |
1.8.0: C++-style cast |
Date: |
Tue, 11 Jul 2006 20:58:51 -0700 (PDT) |
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
- 1.8.0: C++-style cast,
Mike Gran <=