Use NS_PTR_TO_INT32 macros to do 64-bit safe pointer conversions.

Bug #20860 r=peterv sr=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@101007 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cls%seawood.org
2001-08-14 07:58:24 +00:00
parent a6ebce76c8
commit e82eded973
6 changed files with 17 additions and 11 deletions

View File

@@ -239,9 +239,9 @@ void StringListIterator::add(String* strptr) {
**/
MBool StringListIterator::hasNext() {
if (currentItem) {
return (MBool)(currentItem->nextItem);
return (currentItem->nextItem != 0);
}
return (MBool)(stringList->firstItem);
return (stringList->firstItem != 0);
} //-- hasNext
/**
@@ -249,7 +249,7 @@ MBool StringListIterator::hasNext() {
**/
MBool StringListIterator::hasPrevious() {
if (currentItem) {
return (MBool)(currentItem->prevItem);
return (currentItem->prevItem != 0);
}
return MB_FALSE;
} //-- hasPrevious