mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
fix build warnings introduced by 64 bit seekable streams, r=darin, sr=mscott, 242591, 242583
This commit is contained in:
parent
bb8a0ca1ee
commit
eaab8ccd67
@ -509,7 +509,8 @@ nsFastLoadService::ReadFastLoadPtr(nsIObjectInputStream* aInputStream,
|
||||
NS_ASSERTION(entry->mPtrAddr == nsnull, "duplicate nsFastLoadPtr?!");
|
||||
|
||||
entry->mPtrAddr = aPtrAddr;
|
||||
entry->mOffset = thisOffset;
|
||||
|
||||
LL_L2UI(entry->mOffset, thisOffset);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -267,7 +267,9 @@ NS_IMETHODIMP nsStringInputStream::Seek(PRInt32 whence, PRInt64 offset)
|
||||
mLastResult = NS_OK; // reset on a seek.
|
||||
const nsInt64 maxUint32 = PR_UINT32_MAX;
|
||||
nsInt64 offset64(offset);
|
||||
PRInt32 offset32 = offset;
|
||||
PRInt32 offset32;
|
||||
LL_L2I(offset32, offset);
|
||||
|
||||
NS_ASSERTION(maxUint32 > offset64, "string streams only support 32 bit offsets");
|
||||
mEOF = PR_FALSE; // reset on a seek.
|
||||
PRInt32 fileSize = LengthRemaining();
|
||||
|
Loading…
Reference in New Issue
Block a user