aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aberth/compute_host.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/aberth/compute_host.cpp b/aberth/compute_host.cpp
index 38bf43d..343318f 100644
--- a/aberth/compute_host.cpp
+++ b/aberth/compute_host.cpp
@@ -29,7 +29,7 @@ vector<int> computeHost(int W, int H, Com bottomLeft, Com topRight) {
auto calcPos = [W, H, bottomLeft, topRight, &calcIndex](Com z) -> pair<int, int> {
return make_pair(
calcIndex(z.real(), bottomLeft.real(), topRight.real(), W),
- calcIndex(z.imag(), bottomLeft.imag(), topRight.imag(), H)
+ calcIndex(z.imag(), topRight.imag(), bottomLeft.imag(), H)
);
};