Restore some lost empty lines, use number-line order in range-check asserts.

git-svn-id: svn://10.0.0.236/trunk@154834 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org
2004-04-13 23:17:18 +00:00
parent a9bdb32937
commit cdd0f020fc

View File

@@ -56,6 +56,7 @@
#include "nsBinaryStream.h"
#include "nsFastLoadFile.h"
#include "nsInt64.h"
#ifdef DEBUG_brendan
# define METERING
# define DEBUG_MUX
@@ -963,9 +964,10 @@ nsFastLoadFileReader::Open()
rv = seekable->Tell(&fileSize);
if (NS_FAILED(rv))
return rv;
nsInt64 fileSize64(fileSize);
nsInt64 fileSize64 = fileSize;
const nsInt64 maxUint32 = PR_UINT32_MAX;
NS_ASSERTION(maxUint32 > fileSize64, "fileSize must fit in 32 bits");
NS_ASSERTION(fileSize64 <= maxUint32, "fileSize must fit in 32 bits");
if ((PRUint32) fileSize64 != mHeader.mFileSize)
return NS_ERROR_UNEXPECTED;