X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=UefiCpuPkg%2FCpuIoPei%2FCpuIoPei.c;h=3c5c8a74b3a684f451dcf9bf7aba230a4c8bd874;hb=b7cc5bf180e9deefc91a5e66e0b80fd222503608;hp=67b79053935710f1c2deb2a403cc45bfc5b0cceb;hpb=430fbbe0968c9ce6748203776a13e96d367c3bce;p=mirror_edk2.git diff --git a/UefiCpuPkg/CpuIoPei/CpuIoPei.c b/UefiCpuPkg/CpuIoPei/CpuIoPei.c index 67b7905393..3c5c8a74b3 100644 --- a/UefiCpuPkg/CpuIoPei/CpuIoPei.c +++ b/UefiCpuPkg/CpuIoPei/CpuIoPei.c @@ -1,7 +1,7 @@ /** @file Produces the CPU I/O PPI. -Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
+Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -127,7 +127,7 @@ CpuIoCheckParameter ( // // Check to see if Width is in the valid range // - if (Width < 0 || Width >= EfiPeiCpuIoWidthMaximum) { + if ((UINT32)Width >= EfiPeiCpuIoWidthMaximum) { return EFI_INVALID_PARAMETER; }