We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56354d0 commit 19b8f02Copy full SHA for 19b8f02
include/nbl/builtin/hlsl/bit.hlsl
@@ -61,7 +61,7 @@ template<typename T>
61
uint16_t countl_zero(T n)
62
{
63
uint16_t result = 0u;
64
- for(uint32_t bits_log2 = 6u; bits_log2 >= 0u; bits_log2--)
+ for(int32_t bits_log2 = 6u; bits_log2 >= 0u; bits_log2--)
65
66
const uint16_t shift = bits_log2 ? uint16_t(1)<<(bits_log2-1) : 0;
67
const uint64_t loMask = bits_log2 ? (1ull<<shift)-1 : 0;
0 commit comments