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]);