summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Hochberg <tim_hochberg@local>2006-03-09 02:46:11 +0000
committerTim Hochberg <tim_hochberg@local>2006-03-09 02:46:11 +0000
commit1c82c1fa5d12f83ad60f197b2940f5eb7489186c (patch)
tree7b97bd14392dd144328f0e073bcbf9c75b469ceb
parent704204550661e497888ac879e292cb69a55bbd8c (diff)
downloadnumpy-1c82c1fa5d12f83ad60f197b2940f5eb7489186c.tar.gz
Fix negative integral powers of complex numbers being computed as positive powers!
-rw-r--r--numpy/core/src/umathmodule.c.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umathmodule.c.src b/numpy/core/src/umathmodule.c.src
index 0da04e53f..39f9c2b5c 100644
--- a/numpy/core/src/umathmodule.c.src
+++ b/numpy/core/src/umathmodule.c.src
@@ -695,7 +695,7 @@ nc_pow@c@(c@typ@ *a, c@typ@ *b, c@typ@ *r)
nc_prod@c@(&p,&p,&p);
}
r->real = aa.real; r->imag = aa.imag;
- if (bi < 0) nc_quot@c@(&nc_1@c@, r, r);
+ if (br < 0) nc_quot@c@(&nc_1@c@, r, r);
return;
}
}