From 9cf142eba4730a28af1e185db13efadd138d35b5 Mon Sep 17 00:00:00 2001
From: Olivier Martin <olivier.martin@arm.com>
Date: Wed, 1 Apr 2015 10:25:58 +0100
Subject: MdePkg/DevicePath.h: Fixed 'integer operation result is out of range'

ARM toolchain raised this compilation error when using the macro
ACPI_DISPLAY_ADR()

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
---
 MdePkg/Include/Protocol/DevicePath.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MdePkg/Include/Protocol/DevicePath.h b/MdePkg/Include/Protocol/DevicePath.h
index 7cf7113..cfcd39a 100644
--- a/MdePkg/Include/Protocol/DevicePath.h
+++ b/MdePkg/Include/Protocol/DevicePath.h
@@ -273,7 +273,7 @@ typedef struct {
 #define ACPI_ADR_DISPLAY_TYPE_INTERNAL_DIGITAL  4
 
 #define ACPI_DISPLAY_ADR(_DeviceIdScheme, _HeadId, _NonVgaOutput, _BiosCanDetect, _VendorInfo, _Type, _Port, _Index) \
-          ((UINT32)( (((_DeviceIdScheme) & 0x1) << 31) |  \
+          ((UINT32)( (((_DeviceIdScheme) & 0x1UL) << 31) |  \
                       (((_HeadId)         & 0x7) << 18) |  \
                       (((_NonVgaOutput)   & 0x1) << 17) |  \
                       (((_BiosCanDetect)  & 0x1) << 16) |  \
-- 
2.1.1

