aboutsummaryrefslogtreecommitdiff
path: root/algorithms/burning-ship.c
diff options
context:
space:
mode:
Diffstat (limited to 'algorithms/burning-ship.c')
-rw-r--r--algorithms/burning-ship.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/algorithms/burning-ship.c b/algorithms/burning-ship.c
index 8a5d1a1..1dcafac 100644
--- a/algorithms/burning-ship.c
+++ b/algorithms/burning-ship.c
@@ -39,7 +39,7 @@ void *generate_burning_ship_section(void *section)
for (y = d->core, b = (d->core*(size_units/size)+top); y < size; b+=((cores*size_units)/size), y+=cores)
{
- for (x = 0, a = left; x < size; a+=(size_units/size), x++)
+ for (x = clust_id, a = (clust_id*(size_units/size)+left); x < size; a+=((clust_total*size_units)/size), x+=clust_total)
{
z = 0;
c = a+I*b;