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

Bug #20860 r=peterv sr=brendan@mozilla.org
This commit is contained in:
cls%seawood.org 2005-11-02 07:36:53 +00:00
Родитель 56f14af751
Коммит 934f14f8db
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -283,9 +283,9 @@ void txListIterator::addBefore(void* objPtr) {
MBool txListIterator::hasNext() {
MBool hasNext = MB_FALSE;
if (currentItem)
hasNext = (MBool) currentItem->nextItem;
hasNext = (currentItem->nextItem != 0);
else if (!atEndOfList)
hasNext = (MBool) list->firstItem;
hasNext = (list->firstItem != 0);
return hasNext;
} //-- hasNext
@ -298,9 +298,9 @@ MBool txListIterator::hasNext() {
MBool txListIterator::hasPrevious() {
MBool hasPrevious = MB_FALSE;
if (currentItem)
hasPrevious = (MBool) currentItem->prevItem;
hasPrevious = (currentItem->prevItem != 0);
else if (atEndOfList)
hasPrevious = (MBool) list->lastItem;
hasPrevious = (list->lastItem != 0);
return hasPrevious;
} //-- hasPrevious

Просмотреть файл

@ -168,7 +168,7 @@ ExprLexer::~ExprLexer()
MBool ExprLexer::hasMoreTokens()
{
return (MBool)currentItem;
return (currentItem != 0);
} //-- hasMoreTokens
Token* ExprLexer::nextToken()