diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c index be49ba4042..edc03f0e6b 100644 --- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c +++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c @@ -153,7 +153,7 @@ IsDevicePathEndType ( ) { ASSERT (Node != NULL); - return ((DevicePathType (Node) & 0x7f) == END_DEVICE_PATH_TYPE); + return (BOOLEAN) ((DevicePathType (Node) & 0x7f) == END_DEVICE_PATH_TYPE); } /** @@ -176,7 +176,7 @@ IsDevicePathEnd ( ) { ASSERT (Node != NULL); - return (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_ENTIRE_DEVICE_PATH_SUBTYPE); + return (BOOLEAN) (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_ENTIRE_DEVICE_PATH_SUBTYPE); } /** @@ -199,7 +199,7 @@ IsDevicePathEndInstance ( ) { ASSERT (Node != NULL); - return (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_INSTANCE_DEVICE_PATH_SUBTYPE); + return (BOOLEAN) (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_INSTANCE_DEVICE_PATH_SUBTYPE); } /**