Drop unnecessary boolean casts after type refactor
This commit is contained in:
@@ -313,7 +313,7 @@ RTL::BitMap::FindBits(IN PRTL_BITMAP BitMap,
|
||||
while(BitOffset + Length < BitMapEnd)
|
||||
{
|
||||
/* Increment offset */
|
||||
BitOffset += CountBits(BitMap, BitMap->Size - BitOffset, BitOffset, (BOOLEAN)!SetBits);
|
||||
BitOffset += CountBits(BitMap, BitMap->Size - BitOffset, BitOffset, !SetBits);
|
||||
if(BitOffset + Length > BitMapEnd)
|
||||
{
|
||||
/* No match found, break loop execution */
|
||||
|
@@ -34,6 +34,6 @@ RTL::Guid::CompareGuids(IN PGUID Guid1,
|
||||
Guid2Ptr = (PUINT)Guid2;
|
||||
|
||||
/* Compare GUIDs */
|
||||
return (BOOLEAN)(Guid1Ptr[0] == Guid2Ptr[0] && Guid1Ptr[1] == Guid2Ptr[1] &&
|
||||
Guid1Ptr[2] == Guid2Ptr[2] && Guid1Ptr[3] == Guid2Ptr[3]);
|
||||
return (Guid1Ptr[0] == Guid2Ptr[0] && Guid1Ptr[1] == Guid2Ptr[1] &&
|
||||
Guid1Ptr[2] == Guid2Ptr[2] && Guid1Ptr[3] == Guid2Ptr[3]);
|
||||
}
|
||||
|
@@ -107,7 +107,7 @@ XTCDECL
|
||||
BOOLEAN
|
||||
RTL::LinkedList::ListEmpty(IN PLIST_ENTRY ListHead)
|
||||
{
|
||||
return (BOOLEAN)(((ListHead->Flink == NULLPTR) && (ListHead->Blink == NULLPTR)) || (ListHead->Flink == ListHead));
|
||||
return (((ListHead->Flink == NULLPTR) && (ListHead->Blink == NULLPTR)) || (ListHead->Flink == ListHead));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -631,7 +631,7 @@ RTL::Math::InfiniteDouble(IN DOUBLE Value)
|
||||
Var.Double = &Value;
|
||||
|
||||
/* Return TRUE if it is infinite, or FALSE otherwise */
|
||||
return (BOOLEAN)((Var.DoubleS->Exponent & 0x7FF) == 0x7FF);
|
||||
return ((Var.DoubleS->Exponent & 0x7FF) == 0x7FF);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -690,5 +690,5 @@ RTL::Math::NanDouble(IN DOUBLE Value)
|
||||
Var.Double = &Value;
|
||||
|
||||
/* Return TRUE if it is NaN, or FALSE otherwise */
|
||||
return (BOOLEAN)(Var.DoubleS->Exponent == 0x7FF && (Var.DoubleS->MantissaHigh != 0 || Var.DoubleS->MantissaLow != 0));
|
||||
return (Var.DoubleS->Exponent == 0x7FF && (Var.DoubleS->MantissaHigh != 0 || Var.DoubleS->MantissaLow != 0));
|
||||
}
|
||||
|
Reference in New Issue
Block a user