Commit 52e02bd
authored
[SYCL] Fix narrowing type conversion in marray (#7372)
On Windows with -Wc++-narrowing (enabled by default) known-identity test
fails because initializer list has limitations and doesn't allow
narrowing conversions. It may occur when e.g. we use operator~ which
upgrades type. In this case check EnableIfSuitableTypes succeeds but
initializer list limitations may cause compilation errors. Inserting
static_cast is valid since we already have a check for allowed types.
Signed-off-by: Tikhomirova, Kseniya <[email protected]>1 parent 33db95c commit 52e02bd
File tree
2 files changed
+2
-2
lines changed- sycl
- include/sycl
- test/basic_tests
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
0 commit comments