Skip to content

Commit a0948e3

Browse files
jlowealliepiper
authored andcommitted
Use a scope block for CUDA_CUB_RET_IF_FAIL macro
1 parent 53d95bc commit a0948e3

File tree

1 file changed

+2
-2
lines changed
  • thrust/system/cuda/detail/core

1 file changed

+2
-2
lines changed

thrust/system/cuda/detail/core/util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,10 +652,10 @@ namespace core {
652652
}
653653

654654
#define CUDA_CUB_RET_IF_FAIL(e) \
655-
do { \
655+
{ \
656656
auto const error = (e); \
657657
if (cub::Debug(error, __FILE__, __LINE__)) return error; \
658-
} while(0);
658+
}
659659

660660
// uninitialized
661661
// -------

0 commit comments

Comments
 (0)