Commit ebcf1c9
Fix shift-overflow warning for CPU_FEATURE_BIT_AVX512VL
Use (int)(1u << 31) instead of 1 << 31 to avoid -Werror=shift-overflow=
when shifting into the sign bit of a signed int. Keeps the constant type
consistent with all other CPU_FEATURE_BIT_* constants.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7376304 commit ebcf1c9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
0 commit comments