summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2007-07-28 12:59:13 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2007-07-28 12:59:13 +0000
commitab035bb4943f1004688c591282599b9c96556098 (patch)
tree32f33c8d954fd0439f5250f946c0651c2e3f9beb /numpy/core/src
parenta797a6358be742646f1ebf95607e395df6fb7259 (diff)
downloadnumpy-ab035bb4943f1004688c591282599b9c96556098.tar.gz
Trying to fix compiler wrarnings, 4.
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/umathmodule.c.src3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/src/umathmodule.c.src b/numpy/core/src/umathmodule.c.src
index 1827abd07..141147bc8 100644
--- a/numpy/core/src/umathmodule.c.src
+++ b/numpy/core/src/umathmodule.c.src
@@ -1607,6 +1607,7 @@ OBJECT_@kind@(char **args, intp *dimensions, intp *steps, void *func) {
#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 @@ OBJECT_@kind@(char **args, intp *dimensions, intp *steps, void *func) {
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**/