[FAST486]

CountLeadingZeros64 shouldn't loop forever if "Value" is 0.


svn path=/trunk/; revision=64677
This commit is contained in:
Aleksandar Andrejevic
2014-10-11 16:57:33 +00:00
parent 2471c3b90f
commit 33bad414bc
+1 -1
View File
@@ -38,7 +38,7 @@
ULONG Count = 0;
ULONGLONG Mask = 1ULL << 63;
while (!(Value & Mask))
while (!(Value & Mask) && Mask)
{
Count++;
Mask >>= 1;