]> 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 3935919300d053b3d71f49bc72a3754b7dac95a2..92e9c141f725800f2061420e98e68f4dcfc18cc5 100644 (file)
@@ -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