From d356545a8b4b0fd0a328e567ff62cdba68a6703c Mon Sep 17 00:00:00 2001 From: Algy Date: Fri, 30 Aug 2019 07:42:37 +0900 Subject: [PATCH] Fix bug --- context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/context.cpp b/context.cpp index c2d98fb..a26624f 100644 --- a/context.cpp +++ b/context.cpp @@ -226,8 +226,8 @@ namespace fslic { // safeguard for (int k = 0; k < K; k++) { - clusters[k].x = clamp(clusters[k].x, 0, W - 1); - clusters[k].y = clamp(clusters[k].y, 0, H - 1); + clusters[k].x = clamp(clusters[k].x, 0, W - 1); + clusters[k].y = clamp(clusters[k].y, 0, H - 1); } int T = 2 * S;