]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430UgaDraw.c
Fix comparisons of enumerated types which may cause warnings for some compilers.
[mirror_edk2.git] / OptionRomPkg / CirrusLogic5430Dxe / CirrusLogic5430UgaDraw.c
index a1c14130d9f831c248c8f365cfa1b2dc67094398..0f208815ea382975f85866e44fa3d79a33982da0 100644 (file)
@@ -3,7 +3,7 @@
   CirrusLogic5430.c file which deals with the EFI 1.1 driver model.\r
   This file just does graphics.\r
 \r
-  Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -136,7 +136,7 @@ CirrusLogic5430UgaDrawBlt (
 \r
   Private = CIRRUS_LOGIC_5430_PRIVATE_DATA_FROM_UGA_DRAW_THIS (This);\r
 \r
-  if ((BltOperation < 0) || (BltOperation >= EfiUgaBltMax)) {\r
+  if ((UINT32)BltOperation >= EfiUgaBltMax) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r