@@ -83,7 +83,7 @@ class nsJARInputThunk : public nsIInputStream
8383 NS_IF_ADDREF (*result = mJarReader );
8484 }
8585
86- int32_t GetContentLength ()
86+ int64_t GetContentLength ()
8787 {
8888 return mContentLength ;
8989 }
@@ -97,7 +97,7 @@ class nsJARInputThunk : public nsIInputStream
9797 nsCString mJarDirSpec ;
9898 nsCOMPtr<nsIInputStream> mJarStream ;
9999 nsCString mJarEntry ;
100- int32_t mContentLength ;
100+ int64_t mContentLength ;
101101};
102102
103103NS_IMPL_THREADSAFE_ISUPPORTS1 (nsJARInputThunk, nsIInputStream)
@@ -136,7 +136,7 @@ nsJARInputThunk::EnsureJarStream()
136136 rv = mJarStream ->Available ((uint64_t *) &avail);
137137 if (NS_FAILED(rv)) return rv;
138138
139- mContentLength = avail < INT32_MAX ? (int32_t ) avail : -1 ;
139+ mContentLength = avail < INT64_MAX ? (int64_t ) avail : -1 ;
140140
141141 return NS_OK;
142142}
@@ -639,7 +639,7 @@ nsJARChannel::GetContentDispositionHeader(nsACString &aContentDispositionHeader)
639639}
640640
641641NS_IMETHODIMP
642- nsJARChannel::GetContentLength (int32_t *result)
642+ nsJARChannel::GetContentLength (int64_t *result)
643643{
644644 // if content length is unknown, query mJarInput...
645645 if (mContentLength < 0 && mJarInput )
@@ -650,7 +650,7 @@ nsJARChannel::GetContentLength(int32_t *result)
650650}
651651
652652NS_IMETHODIMP
653- nsJARChannel::SetContentLength (int32_t aContentLength)
653+ nsJARChannel::SetContentLength (int64_t aContentLength)
654654{
655655 // XXX does this really make any sense at all?
656656 mContentLength = aContentLength;
0 commit comments