From 47675867203d0f5ce1aad793e2dfc109096fef43 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 31 Oct 2016 08:58:55 -0700 Subject: [PATCH] fix a typo that prevented shuffling/polishing this should fix #1 --- resynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resynth.c b/resynth.c index f14f321..a9bfb23 100644 --- a/resynth.c +++ b/resynth.c @@ -296,7 +296,7 @@ static void run(Resynth_state *s, Parameters parameters) { const int data_area = sb_count(s->data_points); - for (int p = 0; p < parameters.polish + p; p++) { + for (int p = 0; p < parameters.polish + 1; p++) { for (int i = 0; i < data_area; i++) { // shuffle in-place int j = rand() % data_area;