From cdd0f020fcf0eec6edacd0bfb6dc7728df38a115 Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Tue, 13 Apr 2004 23:17:18 +0000 Subject: [PATCH] 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 --- mozilla/xpcom/io/nsFastLoadFile.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/xpcom/io/nsFastLoadFile.cpp b/mozilla/xpcom/io/nsFastLoadFile.cpp index 812efd78dc6..d2a051ea7a0 100644 --- a/mozilla/xpcom/io/nsFastLoadFile.cpp +++ b/mozilla/xpcom/io/nsFastLoadFile.cpp @@ -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;