From c8206f22fd2fb6e72c291304d38d8d1ddee732ce Mon Sep 17 00:00:00 2001 From: Michael Kinney Date: Tue, 23 May 2017 12:03:39 -0700 Subject: [PATCH] MdeModulePkg/RegularExpressionDxe: Fix XCODE5 build failure https://bugzilla.tianocore.org/show_bug.cgi?id=572 The ErrorMessage local variable in OnigurumaMatch() should be type OnigUChar instead of type CHAR8. This resolves a build failure with the XCODE5 tool chain. Cc: Andrew Fish Cc: Star Zeng Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael D Kinney Reviewed-by: Andrew Fish Reviewed-by: Star Zeng --- .../Universal/RegularExpressionDxe/RegularExpressionDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.c b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.c index a5ee7d52fd..cf325fced7 100644 --- a/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.c +++ b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.c @@ -88,7 +88,7 @@ OnigurumaMatch ( OnigRegion *Region; INT32 OnigResult; OnigErrorInfo ErrorInfo; - CHAR8 ErrorMessage[ONIG_MAX_ERROR_MESSAGE_LEN]; + OnigUChar ErrorMessage[ONIG_MAX_ERROR_MESSAGE_LEN]; UINT32 Index; OnigUChar *Start; EFI_STATUS Status; -- 2.39.2