Skip to content

Commit b64a423

Browse files
authored
Workaround issue in MSVC arm64 compiler returning random upper 32-bits in function spvtools::util::CountSetBits. (KhronosGroup#5763)
Fix issue KhronosGroup#5762
1 parent 72c2913 commit b64a423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/util/bitutils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ template <typename T>
9797
size_t CountSetBits(T word) {
9898
static_assert(std::is_integral<T>::value,
9999
"CountSetBits requires integer type");
100-
size_t count = 0;
100+
uint32_t count = 0;
101101
while (word) {
102102
word &= word - 1;
103103
++count;

0 commit comments

Comments
 (0)