fix build warnings introduced by 64 bit seekable streams, r=darin, sr=mscott, 242591, 242583

This commit is contained in:
bienvenu%nventure.com 2004-05-04 23:32:32 +00:00
parent bb8a0ca1ee
commit eaab8ccd67
2 changed files with 5 additions and 2 deletions

View File

@ -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;
}

View File

@ -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();