Bug 784912 nsIStreamListener.onDataAvailable should handle 64-bit offset Bustage Fix for nsFeedSniffer::OnDataAvailable r=me bustage-fix.
authorPhilip Chee <philip.chee@gmail.com>
Thu, 06 Sep 2012 16:41:00 +0800
changeset 11038 8ad14cba8288a26e088b2fbbf72764f1f87a87fd
parent 11037 655ce139a246dc9fd785dae3017cb7c41c88c69b
child 11039 66edec66017cc05bfed661cd38167479a6519796
push id8280
push userphilip.chee@gmail.com
push dateThu, 06 Sep 2012 08:41:40 +0000
treeherdercomm-central@8ad14cba8288 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs784912
Bug 784912 nsIStreamListener.onDataAvailable should handle 64-bit offset Bustage Fix for nsFeedSniffer::OnDataAvailable r=me bustage-fix.
suite/feeds/src/nsFeedSniffer.cpp
--- a/suite/feeds/src/nsFeedSniffer.cpp
+++ b/suite/feeds/src/nsFeedSniffer.cpp
@@ -332,17 +332,17 @@ nsFeedSniffer::AppendSegmentToString(nsI
   nsCString* decodedData = static_cast<nsCString*>(closure);
   decodedData->Append(rawSegment, count);
   *writeCount = count;
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsFeedSniffer::OnDataAvailable(nsIRequest* request, nsISupports* context,
-                               nsIInputStream* stream, uint32_t offset,
+                               nsIInputStream* stream, uint64_t offset,
                                uint32_t count)
 {
   uint32_t read;
   return stream->ReadSegments(AppendSegmentToString, &mDecodedData, count,
                               &read);
 }
 
 NS_IMETHODIMP