From c315aeb48070b4ab6c4b0075f939dbb5a3a8192d Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Thu, 15 Dec 2011 19:51:05 +0000 Subject: [PATCH] GCC requires reinterpret_cast rather than static_cast to cast to privately inherited subclass git-svn-id: http://skia.googlecode.com/svn/trunk@2882 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/GrStencil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/GrStencil.h b/src/gpu/GrStencil.h index 78a156f..713c2ed 100644 --- a/src/gpu/GrStencil.h +++ b/src/gpu/GrStencil.h @@ -263,7 +263,7 @@ GR_STATIC_ASSERT(sizeof(GrStencilSettingsStruct) == sizeof(GrStencilSettings)); (FRONT_WRITE_MASK), (BACK_WRITE_MASK) \ }; \ static const GrStencilSettings& NAME = \ - *static_cast(&(NAME ## _STRUCT)) + *reinterpret_cast(&(NAME ## _STRUCT)) #endif #define GR_STATIC_CONST_SAME_STENCIL(NAME, \ -- 2.7.4