GCC requires reinterpret_cast rather than static_cast to cast to privately inherited...
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 15 Dec 2011 19:51:05 +0000 (19:51 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 15 Dec 2011 19:51:05 +0000 (19:51 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@2882 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/GrStencil.h

index 78a156f..713c2ed 100644 (file)
@@ -263,7 +263,7 @@ GR_STATIC_ASSERT(sizeof(GrStencilSettingsStruct) == sizeof(GrStencilSettings));
         (FRONT_WRITE_MASK), (BACK_WRITE_MASK)                                \
     };                                                                       \
     static const GrStencilSettings& NAME =                                   \
-        *static_cast<const GrStencilSettings*>(&(NAME ## _STRUCT))
+        *reinterpret_cast<const GrStencilSettings*>(&(NAME ## _STRUCT))
 #endif
 
 #define GR_STATIC_CONST_SAME_STENCIL(NAME,                                   \