projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
526405d
)
util: fix -Wshift-count-overflow warning
author
Michel Zou
<xantares09@hotmail.com>
Sat, 31 Oct 2020 12:18:30 +0000
(13:18 +0100)
committer
Marge Bot
<eric+marge@anholt.net>
Tue, 17 Nov 2020 21:23:20 +0000
(21:23 +0000)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7392>
src/util/u_thread.h
patch
|
blob
|
history
diff --git
a/src/util/u_thread.h
b/src/util/u_thread.h
index
bdfb05e
..
428ced0
100644
(file)
--- 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;