From f0e60d266166d834c9905b7d44de510cf4e8f3ea Mon Sep 17 00:00:00 2001 From: "Wang, Jian J" Date: Fri, 29 Dec 2017 09:40:28 +0800 Subject: [PATCH] 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 --- MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {