mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00:00
[FAST486]
CountLeadingZeros64 shouldn't loop forever if "Value" is 0. svn path=/trunk/; revision=64677
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
ULONG Count = 0;
|
||||
ULONGLONG Mask = 1ULL << 63;
|
||||
|
||||
while (!(Value & Mask))
|
||||
while (!(Value & Mask) && Mask)
|
||||
{
|
||||
Count++;
|
||||
Mask >>= 1;
|
||||
|
||||
Reference in New Issue
Block a user