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

numpy-svn@scip... numpy-svn@scip...
Sat Jul 28 07:59:16 CDT 2007


Author: pearu
Date: 2007-07-28 07:59:13 -0500 (Sat, 28 Jul 2007)
New Revision: 3930

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

Modified: trunk/numpy/core/src/umathmodule.c.src
===================================================================
--- trunk/numpy/core/src/umathmodule.c.src	2007-07-28 12:56:02 UTC (rev 3929)
+++ trunk/numpy/core/src/umathmodule.c.src	2007-07-28 12:59:13 UTC (rev 3930)
@@ -1607,6 +1607,7 @@
 
 #TYPE=BYTE,UBYTE,SHORT,USHORT,INT,UINT,LONG,ULONG,LONGLONG,ULONGLONG,FLOAT,DOUBLE,LONGDOUBLE#
 #typ=byte, ubyte, short, ushort, int, uint, long, ulong, longlong, ulonglong, float, double, longdouble#
+#styp=byte, byte, short, short, int, int, long, long, longlong, longlong, float, double, longdouble#
 */
  static void
 @TYPE@_negative(char **args, intp *dimensions, intp *steps, void *func)
@@ -1615,7 +1616,7 @@
 	intp is1=steps[0],os=steps[1], n=dimensions[0];
 	char *i1=args[0], *op=args[1];
 	for(i=0; i<n; i++, i1+=is1, op+=os) {
-		*((@typ@ *)op) = (@typ@) (- *((@typ@ *)i1));
+		*((@typ@ *)op) = (@typ@) (- (@styp@)*((@typ@ *)i1));
 	}
 }
 /**end repeat**/



More information about the Numpy-svn mailing list