From 5a9f73bf065eda6b830445dc907e778f4a13d8d7 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Mon, 12 Aug 2013 04:49:48 +0000 Subject: Refine the code logic for browser and display engine. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14543 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c') diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c b/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c index 607f0df83c..a58e12f12c 100644 --- a/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c +++ b/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c @@ -1045,16 +1045,16 @@ IsValuesEqual ( switch (Type) { case EFI_IFR_TYPE_BOOLEAN: case EFI_IFR_TYPE_NUM_SIZE_8: - return Value1->u8 == Value2->u8; + return (BOOLEAN) (Value1->u8 == Value2->u8); case EFI_IFR_TYPE_NUM_SIZE_16: - return Value1->u16 == Value2->u16; - + return (BOOLEAN) (Value1->u16 == Value2->u16); + case EFI_IFR_TYPE_NUM_SIZE_32: - return Value1->u32 == Value2->u32; - + return (BOOLEAN) (Value1->u32 == Value2->u32); + case EFI_IFR_TYPE_NUM_SIZE_64: - return Value1->u64 == Value2->u64; + return (BOOLEAN) (Value1->u64 == Value2->u64); default: ASSERT (FALSE); -- cgit v1.2.3