mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
addressing reviewer comments
This commit is contained in:
parent
6a4a60ba08
commit
06c922eb95
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user