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:
Michel Zou
2020-10-31 13:18:30 +01:00
committed by Marge Bot
parent 526405dfec
commit 5195a30d27

View File

@@ -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;