Skip to content

Commit f9d34d9

Browse files
committed
static_assert syntax correction.
Signed-off-by: Garima Gupta <[email protected]>
1 parent a43c7ef commit f9d34d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/plugins/opencl/pi_opencl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// Want all the needed casts be explicit, do not define conversion operators.
2323
template <class To, class From> To cast(From value) {
2424
// TODO: see if more sanity checks are possible.
25-
static_assert(sizeof(From) == sizeof(To) && "cast failed size check");
25+
static_assert(sizeof(From) == sizeof(To), "cast failed size check");
2626
return (To)(value);
2727
}
2828

0 commit comments

Comments
 (0)