[Numpy-svn] r3931 - trunk/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Sat Jul 28 08:07:53 CDT 2007


Author: pearu
Date: 2007-07-28 08:07:50 -0500 (Sat, 28 Jul 2007)
New Revision: 3931

Modified:
   trunk/numpy/core/src/umathmodule.c.src
Log:
Trying to fix compiler wrarnings, 5. Defined frexpf when DISTUTILS_USE_SDK.

Modified: trunk/numpy/core/src/umathmodule.c.src
===================================================================
--- trunk/numpy/core/src/umathmodule.c.src	2007-07-28 12:59:13 UTC (rev 3930)
+++ trunk/numpy/core/src/umathmodule.c.src	2007-07-28 13:07:50 UTC (rev 3931)
@@ -48,7 +48,13 @@
        return (float)rint((double)(x));
 }
 #endif
+#ifndef HAVE_FREXPF
+static float frexpf(float x, int * i);
+{
+       return (float)frexp((double)(x), i);
+}
 #endif
+#endif
 
 #ifndef HAVE_INVERSE_HYPERBOLIC
 static double acosh(double x)
@@ -1659,7 +1665,7 @@
         @typ@ t1;
 	for(i=0; i<n; i++, i1+=is1, op+=os) {
                 t1 = *((@typ@ *)i1);
-		(*((@typ@ *)op)).real = _SIGNC(t1);
+		(*((@typ@ *)op)).real = (@rtyp@)_SIGNC(t1);
                 (*((@typ@ *)op)).imag = (@rtyp@)0;
 	}
 }



More information about the Numpy-svn mailing list