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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user