Fix signed/unsigned mismatches to quiet compiler warnings.

This commit is contained in:
mscott%netscape.com 1999-05-07 21:16:48 +00:00
Родитель 68cf8e0fc1
Коммит e757e9276b
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -150,7 +150,7 @@ void nsImapFlagAndUidState::AddUidFlagPair(PRUint32 uid, imapMessageFlagsType fl
}
// optimize the common case of placing on the end
if (!fNumberOfMessagesAdded || (uid > (PRInt32) fUids[fNumberOfMessagesAdded - 1]))
if (!fNumberOfMessagesAdded || (uid > (PRUint32) fUids[fNumberOfMessagesAdded - 1]))
{
fUids.SetAt(fNumberOfMessagesAdded, uid);
fFlags[fNumberOfMessagesAdded] = flags;
@ -169,7 +169,7 @@ void nsImapFlagAndUidState::AddUidFlagPair(PRUint32 uid, imapMessageFlagsType fl
GetMessageFlagsFromUID(uid, &foundIt, &insertionIndex);
// Hmmm, is the server sending back unordered fetch responses?
if (((PRInt32) fUids[insertionIndex]) != uid)
if (((PRUint32) fUids[insertionIndex]) != uid)
{
// shift the uids and flags to the right
for (PRInt32 shiftIndex = fNumberOfMessagesAdded; shiftIndex > insertionIndex; shiftIndex--)