Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Algy committed Dec 9, 2019
1 parent 7dbaca7 commit 128c7fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ namespace fslic {

// safeguard
for (int k = 0; k < K; k++) {
clusters[k].x = clamp<DistType>(clusters[k].x, 0, W - 1);
clusters[k].y = clamp<DistType>(clusters[k].y, 0, H - 1);
clusters[k].x = clamp<float>(clusters[k].x, 0, W - 1);
clusters[k].y = clamp<float>(clusters[k].y, 0, H - 1);
}

int T = 2 * S + 32;
Expand Down

0 comments on commit 128c7fd

Please sign in to comment.