Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp

Issue 2747193002: Fix instances of clang -Wbitfield-enum-conversion in Blink (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp
diff --git a/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp b/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp
index a6a9a698d8d03dcd90e0e31e0df5405243469220..8de868507a3e0524f1431f046f359bc6b016922d 100644
--- a/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp
+++ b/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp
@@ -40,7 +40,7 @@ SVGAnimatedPropertyBase::SVGAnimatedPropertyBase(
const QualifiedName& attributeName,
CSSPropertyID cssPropertyId)
: m_type(type),
- m_cssPropertyId(cssPropertyId),
+ m_cssPropertyId(static_cast<unsigned>(cssPropertyId)),
Nico 2017/03/14 17:16:47 add comment why a) cast is here b) why this is saf
m_contextElement(contextElement),
m_attributeName(attributeName) {
DCHECK(m_contextElement);

Powered by Google App Engine
This is Rietveld 408576698