summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2007-07-28 12:56:02 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2007-07-28 12:56:02 +0000
commita797a6358be742646f1ebf95607e395df6fb7259 (patch)
tree13341b34dcac79c9c30a467a9d5ba062f3665275 /numpy/core/src
parenta8839aaf8fd85af0a8b926029876cf23b63e90ef (diff)
downloadnumpy-a797a6358be742646f1ebf95607e395df6fb7259.tar.gz
Trying to fix compiler wrarnings, 3.
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/umathmodule.c.src5
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/core/src/umathmodule.c.src b/numpy/core/src/umathmodule.c.src
index eb159a9c3..1827abd07 100644
--- a/numpy/core/src/umathmodule.c.src
+++ b/numpy/core/src/umathmodule.c.src
@@ -1615,7 +1615,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@ *)i1);
+ *((@typ@ *)op) = (@typ@) (- *((@typ@ *)i1));
}
}
/**end repeat**/
@@ -1647,6 +1647,7 @@ static void
/**begin repeat
#TYPE=CFLOAT,CDOUBLE,CLONGDOUBLE#
#typ=cfloat,cdouble,clongdouble#
+#rtyp=float,double,longdouble#
*/
static void
@TYPE@_sign(char **args, intp *dimensions, intp *steps, void *func)
@@ -1658,7 +1659,7 @@ static void
for(i=0; i<n; i++, i1+=is1, op+=os) {
t1 = *((@typ@ *)i1);
(*((@typ@ *)op)).real = _SIGNC(t1);
- (*((@typ@ *)op)).imag = 0;
+ (*((@typ@ *)op)).imag = (@rtyp@)0;
}
}
/**end repeat**/