aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/core/SkRRect.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h
index d3f48cd484..16670aab45 100644
--- a/include/core/SkRRect.h
+++ b/include/core/SkRRect.h
@@ -95,7 +95,7 @@ public:
this->computeType();
}
SkASSERT(kUnknown_Type != fType);
- return fType;
+ return static_cast<Type>(fType);
}
Type type() const { return this->getType(); }
@@ -304,7 +304,8 @@ private:
SkRect fRect;
// Radii order is UL, UR, LR, LL. Use Corner enum to index into fRadii[]
SkVector fRadii[4];
- mutable Type fType;
+ // use an explicitly sized type so we're sure the class is dense (no uninitialized bytes)
+ mutable int32_t fType;
// TODO: add padding so we can use memcpy for flattening and not copy
// uninitialized data