You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL] Fix static_assert with -funsigned-char (#17133)
The type of (ext_vector<int8_t, 2>{1, 0} == 0)[1] has type char, not
int8_t, and therefore depending on whether -funsigned-char is in effect
may either have the value -1 or have the value 255. Cast to int8_t to
ensure it always gets taken as signed. This is only needed for the
static_assert: the rest of the code already works for signed and
unsigned plain char alike.
0 commit comments