]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Common/BaseTypes.h
Fix ALIGN_POINTER() macro. The pointer (p) passed in must always be converted to...
[mirror_edk2.git] / MdePkg / Include / Common / BaseTypes.h
index 86c3c71fb3bb7afbfb4b5a5203ef0d80b580c340..92e9c141f725800f2061420e98e68f4dcfc18cc5 100644 (file)
@@ -62,7 +62,7 @@ typedef struct {
 //\r
 #ifndef TRUE\r
 //\r
-// BugBug: UEFI specification claims 1 and 0. We are concerned about the \r
+//  UEFI specification claims 1 and 0. We are concerned about the \r
 //  complier portability so we did it this way.\r
 //\r
 #define TRUE  ((BOOLEAN)(1==1))\r
@@ -139,7 +139,7 @@ typedef CHAR8 *VA_LIST;
 ///\r
 ///  ALIGN_POINTER - aligns a pointer to the lowest boundry\r
 ///\r
-#define ALIGN_POINTER(p, s) ((VOID *) ((p) + (((s) - ((UINTN) (p))) & ((s) - 1))))\r
+#define ALIGN_POINTER(p, s) ((VOID *) ((UINTN)(p) + (((s) - ((UINTN) (p))) & ((s) - 1))))\r
 \r
 ///\r
 ///  ALIGN_VARIABLE - aligns a variable up to the next natural boundry for int size of a processor\r