better bustage fix

This commit is contained in:
cbiesinger%web.de 2005-01-01 16:31:29 +00:00
parent dab02c5aa5
commit c5204c222f
2 changed files with 4 additions and 3 deletions

View File

@ -548,8 +548,9 @@ nsIndexedToHTML::OnIndexAvailable(nsIRequest *aRequest,
PRInt64 size;
aIndex->GetSize(&size);
if (nsUint64(PRUint64(size)) != nsUint64(LL_MAXUINT) &&
const PRInt64 minus1 = LL_MAXUINT;
if (LL_NE(PRUint64(size), minus1) &&
type != nsIDirIndex::TYPE_DIRECTORY &&
type != nsIDirIndex::TYPE_SYMLINK) {
nsAutoString sizeString;

View File

@ -481,7 +481,7 @@ nsHTTPIndex::OnIndexAvailable(nsIRequest* aRequest, nsISupports *aContext,
PRInt64 size;
rv = aIndex->GetSize(&size);
if (NS_FAILED(rv)) return rv;
PRInt64 minus1 = LL_MAXUINT;
const PRInt64 minus1 = LL_MAXUINT;
if (LL_NE(size, minus1)) {
PRInt32 intSize;
LL_L2I(intSize, size);