mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-10-18 11:10:05 +00:00
Workaround issue in MSVC arm64 compiler returning random upper 32-bits in function spvtools::util::CountSetBits. (#5763)
Fix issue #5762
This commit is contained in:
parent
72c291332a
commit
b64a423b44
@ -97,7 +97,7 @@ template <typename T>
|
||||
size_t CountSetBits(T word) {
|
||||
static_assert(std::is_integral<T>::value,
|
||||
"CountSetBits requires integer type");
|
||||
size_t count = 0;
|
||||
uint32_t count = 0;
|
||||
while (word) {
|
||||
word &= word - 1;
|
||||
++count;
|
||||
|
Loading…
Reference in New Issue
Block a user