aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrStencil.h
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-15 19:51:05 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-15 19:51:05 +0000
commitc315aeb48070b4ab6c4b0075f939dbb5a3a8192d (patch)
tree12b385dd498d84678ed898b505ac3b9e5e932eec /src/gpu/GrStencil.h
parent6b2445eb154d71517b1ed6811f3f77eec592963a (diff)
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
Diffstat (limited to 'src/gpu/GrStencil.h')
-rw-r--r--src/gpu/GrStencil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrStencil.h b/src/gpu/GrStencil.h
index 78a156f9ea..713c2ed7d1 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<const GrStencilSettings*>(&(NAME ## _STRUCT))
+ *reinterpret_cast<const GrStencilSettings*>(&(NAME ## _STRUCT))
#endif
#define GR_STATIC_CONST_SAME_STENCIL(NAME, \