From: Wang, Jian J Date: Fri, 29 Dec 2017 01:40:28 +0000 (+0800) Subject: MdeModulePkg/DxePrintLibPrint2Protocol: fix GCC5 build break X-Git-Tag: edk2-stable201903~2693 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f0e60d266166d834c9905b7d44de510cf4e8f3ea;p=mirror_edk2.git MdeModulePkg/DxePrintLibPrint2Protocol: fix GCC5 build break Cc: Star Zeng Cc: Eric Dong Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang Reviewed-by: Eric Dong Reviewed-by: Liming Gao --- diff --git a/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c b/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c index 570d06d82e..0e6178fc9c 100644 --- a/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c +++ b/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c @@ -2052,7 +2052,7 @@ InternalPrintLibSPrintMarker ( // for (Count = 0; ArgumentString[Count * BytesPerArgumentCharacter] != '\0' && - Count < Precision || ((Flags & PRECISION) == 0); + (Count < Precision || ((Flags & PRECISION) == 0)); Count++) { ArgumentCharacter = ((ArgumentString[Count * BytesPerArgumentCharacter] & 0xff) | ((ArgumentString[Count * BytesPerArgumentCharacter + 1]) << 8)) & ArgumentMask; if (ArgumentCharacter == 0) {