Source-Changes-HG archive

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

[src/trunk]: src/lib/libm/noieee_src Don't cast x to double, it already is one.



details:   https://anonhg.NetBSD.org/src/rev/ec026e162da5
branches:  trunk
changeset: 580668:ec026e162da5
user:      matt <matt%NetBSD.org@localhost>
date:      Tue May 03 04:18:32 2005 +0000

description:
Don't cast x to double, it already is one.

diffstat:

 lib/libm/noieee_src/n_erf.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d8951b224eb7 -r ec026e162da5 lib/libm/noieee_src/n_erf.c
--- a/lib/libm/noieee_src/n_erf.c       Tue May 03 00:23:41 2005 +0000
+++ b/lib/libm/noieee_src/n_erf.c       Tue May 03 04:18:32 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: n_erf.c,v 1.6 2003/08/07 16:44:50 agc Exp $    */
+/*     $NetBSD: n_erf.c,v 1.7 2005/05/03 04:18:32 matt Exp $   */
 /*-
  * Copyright (c) 1992, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -146,7 +146,7 @@
 
 #if defined(__vax__) || defined(tahoe)
 #define _IEEE  0
-#define TRUNC(x) (double)(x) = (float)(x)
+#define TRUNC(x) (x) = (float)(x)
 #else
 #define _IEEE  1
 #define TRUNC(x) *(((int *) &x) + 1) &= 0xf8000000



Home | Main Index | Thread Index | Old Index