Fix clang build - take 2
authorcrogers@google.com <crogers@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 4 Jun 2011 03:06:32 +0000 (03:06 +0000)
committercrogers@google.com <crogers@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 4 Jun 2011 03:06:32 +0000 (03:06 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@88089 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/webaudio/AudioParamTimeline.cpp

index 42ad5df91a4162e552670b7f8e940e23aad25670..685e913b46d9960f6973212f5fadb1001ec0892d 100644 (file)
@@ -1,3 +1,13 @@
+2011-06-03  Chris Rogers  <crogers@google.com>
+
+        Unreviewed build fix.
+
+        Fix clang build - take 2
+        https://bugs.webkit.org/show_bug.cgi?id=62081
+
+        * webaudio/AudioParamTimeline.cpp:
+        (WebCore::AudioParamTimeline::valuesForTimeRangeImpl):
+
 2011-06-03  Chris Rogers  <crogers@google.com>
 
         Unreviewed clang build fix.
index ffd5dc9be8bc5dd9b7c11d327965ad7134ade0bf..0451884456fae19185708aa2f611beb3d3404643 100644 (file)
@@ -228,7 +228,7 @@ float AudioParamTimeline::valuesForTimeRangeImpl(float startTime,
         unsigned fillToFrame = timeToSampleFrame(fillToTime - startTime, sampleRate);
         fillToFrame = min(fillToFrame, numberOfValues);
 
-        ParamEvent::Type nextEventType = nextEvent ? nextEvent->type() : ParamEvent::LastType /* unknown */;
+        ParamEvent::Type nextEventType = nextEvent ? static_cast<ParamEvent::Type>(nextEvent->type()) : ParamEvent::LastType /* unknown */;
 
         // First handle linear and exponential ramps which require looking ahead to the next event.
         if (nextEventType == ParamEvent::LinearRampToValue) {