addressing reviewer comments

This commit is contained in:
cbiesinger%web.de 2004-04-18 13:22:31 +00:00
parent 6a4a60ba08
commit 06c922eb95
2 changed files with 2 additions and 2 deletions

View File

@ -550,7 +550,7 @@ nsIndexedToHTML::OnIndexAvailable(nsIRequest *aRequest,
PRInt64 size;
aIndex->GetSize(&size);
if (size != LL_INIT(0, -1) &&
if (LL_NE(size, LL_INIT(0, -1)) &&
type != nsIDirIndex::TYPE_DIRECTORY &&
type != nsIDirIndex::TYPE_SYMLINK) {
nsAutoString sizeString;

View File

@ -480,7 +480,7 @@ nsHTTPIndex::OnIndexAvailable(nsIRequest* aRequest, nsISupports *aContext,
PRInt64 size;
rv = aIndex->GetSize(&size);
if (NS_FAILED(rv)) return rv;
if (size != LL_INIT(0, -1)) {
if (LL_NE(size, LL_INIT(0, -1))) {
PRInt32 intSize;
LL_L2I(intSize, size);
// XXX RDF should support 64 bit integers (bug 240160)