mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
util: fix -Wshift-count-overflow warning
Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7392>
This commit is contained in:
parent
526405dfec
commit
5195a30d27
1 changed files with 3 additions and 2 deletions
|
|
@ -170,8 +170,9 @@ util_set_thread_affinity(thrd_t thread,
|
|||
memset(old_mask, 0, num_mask_bits / 32);
|
||||
|
||||
old_mask[0] = m;
|
||||
if (sizeof(m) > 4)
|
||||
old_mask[1] = m >> 32;
|
||||
#ifdef _WIN64
|
||||
old_mask[1] = m >> 32;
|
||||
#endif
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue