Avoid explicit long long constants.
This commit is contained in:
parent
02c0b9c5dc
commit
c85f61b189
|
@ -467,14 +467,12 @@ static void test_RtlFindLeastSignificantBit()
|
||||||
|
|
||||||
for (i = 0; i < 64; i++)
|
for (i = 0; i < 64; i++)
|
||||||
{
|
{
|
||||||
ulLong = 1ul;
|
ulLong = (ULONGLONG)1 << i;
|
||||||
ulLong <<= i;
|
|
||||||
|
|
||||||
cPos = pRtlFindLeastSignificantBit(ulLong);
|
cPos = pRtlFindLeastSignificantBit(ulLong);
|
||||||
ok (cPos == i, "didnt find LSB %llx %d %d", ulLong, i, cPos);
|
ok (cPos == i, "didnt find LSB %llx %d %d", ulLong, i, cPos);
|
||||||
|
|
||||||
ulLong = 0xfffffffffffffffful;
|
ulLong = ~((ULONGLONG)0) << i;
|
||||||
ulLong <<= i;
|
|
||||||
|
|
||||||
cPos = pRtlFindLeastSignificantBit(ulLong);
|
cPos = pRtlFindLeastSignificantBit(ulLong);
|
||||||
ok (cPos == i, "didnt find LSB %llx %d %d", ulLong, i, cPos);
|
ok (cPos == i, "didnt find LSB %llx %d %d", ulLong, i, cPos);
|
||||||
|
|
Loading…
Reference in New Issue