From eaa6aeba69ef2e43937a5726070ff9b71b67a3f2 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Fri, 9 Jun 2006 03:10:22 +0000 Subject: [PATCH] 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 --- Tools/Conf/Pcd/PcdDatabaseCommonDefinitions.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2