From 90e65cacd6721efa48f54e4c194a8884fcf61cb9 Mon Sep 17 00:00:00 2001 From: Sascha Nitsch Date: Mon, 17 Jan 2022 16:44:51 +0100 Subject: [PATCH] refactoring/cleanup without test :( --- c++/algorithm/distancepath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c++/algorithm/distancepath.cpp b/c++/algorithm/distancepath.cpp index 3806150..8ad90d4 100644 --- a/c++/algorithm/distancepath.cpp +++ b/c++/algorithm/distancepath.cpp @@ -96,7 +96,7 @@ int8_t DistancePath::process(Image* input, Image* output) { // swap list to get new input queue std::swap(last, next); if (iteration > 10000) break; - } while (next->size() > 0); + } while (last->size() > 0); printf("iterations: %i\n", iteration); // find max value