]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Make the PCD database compilable on X64 platform.
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 9 Jun 2006 03:10:22 +0000 (03:10 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 9 Jun 2006 03:10:22 +0000 (03:10 +0000)
We need to add a (UINTN) cast before casting the address to UINT32 type.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@449 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Conf/Pcd/PcdDatabaseCommonDefinitions.sample

index d441aa0515d9428a2f8e1ddeabae680a5394c4e3..011d3df60342ef60f24964d81cd14c1d1eb87420 100644 (file)
@@ -49,7 +49,7 @@ typedef struct {
   UINT16 Size;\r
 } SIZEINFO;\r
 \r
   UINT16 Size;\r
 } SIZEINFO;\r
 \r
-#define offsetof(s,m)                 (UINT32)&(((s *)0)->m)\r
+#define offsetof(s,m)                 (UINT32) (UINTN) &(((s *)0)->m)\r
 \r
 \r
 \r
 \r
 \r
 \r