Unreviewed build fix after r182168.
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Mar 2015 01:09:08 +0000 (01:09 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Mar 2015 01:09:08 +0000 (01:09 +0000)
* contentextensions/ContentExtensionsBackend.cpp:
(WebCore::ContentExtensions::ContentExtensionsBackend::actionsForResourceLoad):
Explicitly cast to unsigned.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182169 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/contentextensions/ContentExtensionsBackend.cpp

index f031a25..55fce5c 100644 (file)
@@ -1,5 +1,13 @@
 2015-03-30  Alex Christensen  <achristensen@webkit.org>
 
+        Unreviewed build fix after r182168.
+
+        * contentextensions/ContentExtensionsBackend.cpp:
+        (WebCore::ContentExtensions::ContentExtensionsBackend::actionsForResourceLoad):
+        Explicitly cast to unsigned.
+
+2015-03-30  Alex Christensen  <achristensen@webkit.org>
+
         [Content Extensions] Correctly handle regular expressions matching everything
         https://bugs.webkit.org/show_bug.cgi?id=143235
 
index 01ae272..e4fc685 100644 (file)
@@ -107,7 +107,7 @@ Vector<Action> ContentExtensionsBackend::actionsForResourceLoad(const ResourceLo
         if (!sawIgnorePreviousRules) {
             DFABytecodeInterpreter::Actions universalActions = interpreter.actionsFromDFARoot();
             for (auto actionLocation : universalActions) {
-                Action action = Action::deserialize(actions, actionsLength, actionLocation);
+                Action action = Action::deserialize(actions, actionsLength, static_cast<unsigned>(actionLocation));
                 
                 // CSS selectors were already compiled into a stylesheet using globalDisplayNoneSelectors.
                 if (action.type() != ActionType::CSSDisplayNoneSelector)