From 2ad2848d4ee3a9bda31b0e41d05fa9dcdc48ab54 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Tue, 28 Jul 2015 21:43:31 +1200 Subject: This never happened... --- algorithms/burning-ship-lattice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'algorithms/burning-ship-lattice.c') diff --git a/algorithms/burning-ship-lattice.c b/algorithms/burning-ship-lattice.c index 7c2d1e9..b197ac7 100644 --- a/algorithms/burning-ship-lattice.c +++ b/algorithms/burning-ship-lattice.c @@ -39,7 +39,7 @@ void *generate_burning_ship_lattice_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; -- cgit v1.1