summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-09 03:10:22 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-09 03:10:22 +0000
commiteaa6aeba69ef2e43937a5726070ff9b71b67a3f2 (patch)
tree80e5df6c1a7b719677b5c1c843ab231329d726f9 /Tools
parent445705369d448a3f5b6a48edccb703798832d3c5 (diff)
downloadedk2-platforms-eaa6aeba69ef2e43937a5726070ff9b71b67a3f2.tar.xz
Make the PCD database compilable on X64 platform.
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
Diffstat (limited to 'Tools')
-rw-r--r--Tools/Conf/Pcd/PcdDatabaseCommonDefinitions.sample2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/Conf/Pcd/PcdDatabaseCommonDefinitions.sample b/Tools/Conf/Pcd/PcdDatabaseCommonDefinitions.sample
index d441aa0515..011d3df603 100644
--- a/Tools/Conf/Pcd/PcdDatabaseCommonDefinitions.sample
+++ b/Tools/Conf/Pcd/PcdDatabaseCommonDefinitions.sample
@@ -49,7 +49,7 @@ typedef struct {
UINT16 Size;
} SIZEINFO;
-#define offsetof(s,m) (UINT32)&(((s *)0)->m)
+#define offsetof(s,m) (UINT32) (UINTN) &(((s *)0)->m)