From 5195a30d27ade4aabd3aa40b2dd9ac30e34a9e3c Mon Sep 17 00:00:00 2001 From: Michel Zou Date: Sat, 31 Oct 2020 13:18:30 +0100 Subject: [PATCH] util: fix -Wshift-count-overflow warning Reviewed-by: Jose Fonseca Part-of: --- src/util/u_thread.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/u_thread.h b/src/util/u_thread.h index bdfb05e..428ced0 100644 --- a/src/util/u_thread.h +++ b/src/util/u_thread.h @@ -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; -- 2.7.4