summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2007-07-28 12:41:40 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2007-07-28 12:41:40 +0000
commita8839aaf8fd85af0a8b926029876cf23b63e90ef (patch)
tree1f398ebcd55738f55ffd5f704d6b0a5ea838a0fd /numpy/core/src
parent0e41f9a4603e45e6d8d18b92ad6c6bd928cba8ad (diff)
downloadnumpy-a8839aaf8fd85af0a8b926029876cf23b63e90ef.tar.gz
Trying to fix compiler wrarnings, 2.
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/umathmodule.c.src6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/umathmodule.c.src b/numpy/core/src/umathmodule.c.src
index 2b253442f..eb159a9c3 100644
--- a/numpy/core/src/umathmodule.c.src
+++ b/numpy/core/src/umathmodule.c.src
@@ -1139,7 +1139,7 @@ static void
}
else {
*((@otyp@ *)op)= \
- (double)*((@typ@ *)i1) / (double)*((@typ@ *)i2);
+ (@otyp@)((double)*((@typ@ *)i1) / (double)*((@typ@ *)i2));
}
}
}
@@ -1381,8 +1381,8 @@ static void
@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);
}
}