Commit 00816b2
committed
fix(tests): Fix narrowing conversion in sparse vector neighbor exchange test
Add static_cast<size_t> to avoid narrowing conversion errors when compiling
with clang. Fixes compilation failure in CI for clang-14 and clang-16 builds.
Changes:
- Line 248: Cast rank * 100 expressions to size_t
- Line 253: Cast rank * 200 expressions to size_t
Resolves CI error: non-constant-expression cannot be narrowed from type 'int'
to 'unsigned long' in initializer list [-Wc++11-narrowing]1 parent 7189de9 commit 00816b2
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | | - | |
| 254 | + | |
| 255 | + | |
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
| |||
0 commit comments