Skip to content

Commit 12d9ac7

Browse files
remove unsigned suffices
1 parent 19b8f02 commit 12d9ac7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/nbl/builtin/hlsl/bit.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ template<typename T>
6161
uint16_t countl_zero(T n)
6262
{
6363
uint16_t result = 0u;
64-
for(int32_t bits_log2 = 6u; bits_log2 >= 0u; bits_log2--)
64+
for(int32_t bits_log2=6; bits_log2>=0; bits_log2--)
6565
{
6666
const uint16_t shift = bits_log2 ? uint16_t(1)<<(bits_log2-1) : 0;
6767
const uint64_t loMask = bits_log2 ? (1ull<<shift)-1 : 0;
@@ -78,4 +78,4 @@ uint16_t countl_zero(T n)
7878
}
7979
#endif
8080

81-
#endif
81+
#endif

0 commit comments

Comments
 (0)