Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 87bd535

Browse files
authored
Merge pull request #145 from facebookresearch/no-semicolon-in-macro
do not emit semicolon after if_then_else macro
2 parents e2339ff + 257a348 commit 87bd535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/tc/core/libraries.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ constexpr auto boundsAsTemplate = R"C(
144144
template<typename T> inline __device__ T floord(T n, T d) {
145145
return n < 0 ? - (-n + d - 1)/d : n / d;
146146
}
147-
#define if_then_else(cond,a,b) (cond) ? (a) : (b);
147+
#define if_then_else(cond,a,b) ((cond) ? (a) : (b))
148148
)C";
149149
} // namespace cpp
150150

0 commit comments

Comments
 (0)