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

numpy-svn at scipy.org numpy-svn at scipy.org
Sat Jul 28 08:41:43 EDT 2007


Author: pearu
Date: 2007-07-28 07:41:40 -0500 (Sat, 28 Jul 2007)
New Revision: 3928

Modified:
   trunk/numpy/core/src/umathmodule.c.src
Log:
Trying to fix compiler wrarnings, 2.

Modified: trunk/numpy/core/src/umathmodule.c.src
===================================================================
--- trunk/numpy/core/src/umathmodule.c.src	2007-07-28 12:36:16 UTC (rev 3927)
+++ trunk/numpy/core/src/umathmodule.c.src	2007-07-28 12:41:40 UTC (rev 3928)
@@ -1139,7 +1139,7 @@
 		}
 		else {
 			*((@otyp@ *)op)=				\
-				(double)*((@typ@ *)i1) / (double)*((@typ@ *)i2);
+			  (@otyp@)((double)*((@typ@ *)i1) / (double)*((@typ@ *)i2));
 		}
 	}
 }
@@ -1381,8 +1381,8 @@
 	@btyp@ x, y;
 
 	for(i=0; i<n; i++, i1+=is1, i2+=is2, op+=os) {
-		x = *((@typ@ *)i1);
-		y = *((@typ@ *)i2);
+		x = (@btyp@)*((@typ@ *)i1);
+		y = (@btyp@)*((@typ@ *)i2);
 		*((@typ@ *)op) = (@typ@) pow(x,y);
 	}
 }




More information about the Numpy-svn mailing list