Skip to content

Commit

Permalink
Use %% for inline assembly rather than % so this compiles with clang.
Browse files Browse the repository at this point in the history
Same as opencv@9210cef but for this file too.
  • Loading branch information
nnorwitz authored Apr 6, 2017
1 parent 9210cef commit 24e8cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/include/opencv2/core/cuda/warp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace cv { namespace cuda { namespace device
static __device__ __forceinline__ unsigned int laneId()
{
unsigned int ret;
asm("mov.u32 %0, %laneid;" : "=r"(ret) );
asm("mov.u32 %0, %%laneid;" : "=r"(ret) );
return ret;
}

Expand Down

0 comments on commit 24e8cd1

Please sign in to comment.