summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core')
-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);
}
}