Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Algy committed Aug 29, 2019
1 parent 72f4e1c commit d356545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ namespace fslic {

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

int T = 2 * S;
Expand Down

0 comments on commit d356545

Please sign in to comment.