Skip to content

Commit

Permalink
Fix canny.cu
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabaud committed Sep 26, 2024
1 parent 1c8ec2d commit 02f037d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cudaimgproc/src/cuda/canny.cu
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ namespace canny
while (s_counter > 0 && s_counter <= stack_size - blockDim.x)
{
const int subTaskIdx = threadIdx.x >> 3;
const int portion = std::min(s_counter, (int)(blockDim.x >> 3));
const int portion = ::min(s_counter, blockDim.x >> 3);

if (subTaskIdx < portion)
pos = s_st[s_counter - 1 - subTaskIdx];
Expand Down

0 comments on commit 02f037d

Please # to comment.