Skip to content

Commit cb98ea0

Browse files
committed
Apply code review comment
Signed-off-by: Alexey Bader <[email protected]>
1 parent 1c0ccb9 commit cb98ea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/sycl/detail/boolean.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ template <int N> struct Boolean {
6060

6161
Boolean(std::initializer_list<element_type> l) {
6262
for (size_t I = 0; I < N; ++I) {
63-
value[I] = (!!*(l.begin() + I)) * (-1);
63+
value[I] = *(l.begin() + I) ? -1 : 0;
6464
}
6565
}
6666

0 commit comments

Comments
 (0)