Bug 895168 - Part 2: Stop using LL_ZERO in the tree; r=jcranmer
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 18 Jul 2013 16:48:15 -0400
changeset 139170 f900f2d0d3f1aee0d3a08460fa7facc42dd9f7b0
parent 139169 b580862e93f6e743b1a4ca0866fbcf4ec684e635
child 139171 efe5a0a1b1812936aa51a4f3b230b1e126532dc1
push id1890
push userryanvm@gmail.com
push dateFri, 19 Jul 2013 17:44:21 +0000
treeherderfx-team@20848adc9980 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjcranmer
bugs895168
milestone25.0a1
Bug 895168 - Part 2: Stop using LL_ZERO in the tree; r=jcranmer
dom/plugins/base/nsPluginStreamListenerPeer.cpp
--- a/dom/plugins/base/nsPluginStreamListenerPeer.cpp
+++ b/dom/plugins/base/nsPluginStreamListenerPeer.cpp
@@ -823,17 +823,17 @@ NS_IMETHODIMP nsPluginStreamListenerPeer
   // call OnDataAvailable
   if (mStreamType != NP_ASFILEONLY) {
     // get the absolute offset of the request, if one exists.
     nsCOMPtr<nsIByteRangeRequest> brr = do_QueryInterface(request);
     if (brr) {
       if (!mDataForwardToRequest)
         return NS_ERROR_FAILURE;
       
-      int64_t absoluteOffset64 = LL_ZERO;
+      int64_t absoluteOffset64 = 0;
       brr->GetStartRange(&absoluteOffset64);
       
       // XXX handle 64-bit for real
       int32_t absoluteOffset = (int32_t)int64_t(absoluteOffset64);
       
       // we need to track how much data we have forwarded to the
       // plugin.
       
@@ -904,17 +904,17 @@ NS_IMETHODIMP nsPluginStreamListenerPeer
   
   PLUGIN_LOG(PLUGIN_LOG_NOISY,
              ("nsPluginStreamListenerPeer::OnStopRequest this=%p aStatus=%d request=%p\n",
               this, aStatus, request));
   
   // for ByteRangeRequest we're just updating the mDataForwardToRequest hash and return.
   nsCOMPtr<nsIByteRangeRequest> brr = do_QueryInterface(request);
   if (brr) {
-    int64_t absoluteOffset64 = LL_ZERO;
+    int64_t absoluteOffset64 = 0;
     brr->GetStartRange(&absoluteOffset64);
     // XXX support 64-bit offsets
     int32_t absoluteOffset = (int32_t)int64_t(absoluteOffset64);
     
     nsPRUintKey key(absoluteOffset);
     
     // remove the request from our data forwarding count hash.
     mDataForwardToRequest->Remove(&key);