From 56398e39d70b88cea71faf575166ed2fbca6e2a6 Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Tue, 17 Apr 2007 05:48:35 +0000 Subject: [PATCH] Make it work on 64-bit systems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36194 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/C++Frontend/2005-01-03-StaticInitializers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/C++Frontend/2005-01-03-StaticInitializers.cpp b/test/C++Frontend/2005-01-03-StaticInitializers.cpp index 0791d9fd83f..da1b005cf4a 100644 --- a/test/C++Frontend/2005-01-03-StaticInitializers.cpp +++ b/test/C++Frontend/2005-01-03-StaticInitializers.cpp @@ -4,5 +4,5 @@ struct S { int A[2]; }; -int XX = (int)&(((struct S*)0)->A[1]); +int XX = (int)(long)&(((struct S*)0)->A[1]);