From 8db0fb69b925f386e74bc0b8860e6c9e319c342e Mon Sep 17 00:00:00 2001 From: "kjh-5727%comcast.net" Date: Sat, 31 Jul 2004 15:56:39 +0000 Subject: [PATCH] Fixing bustage ("ambiguous conversion" from gcc 3.3.1) --- mailnews/base/src/nsMsgPurgeService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mailnews/base/src/nsMsgPurgeService.cpp b/mailnews/base/src/nsMsgPurgeService.cpp index 4b0106b42b99..f5f17d75a1ef 100644 --- a/mailnews/base/src/nsMsgPurgeService.cpp +++ b/mailnews/base/src/nsMsgPurgeService.cpp @@ -175,7 +175,7 @@ nsresult nsMsgPurgeService::PerformPurge() PR_LOG(MsgPurgeLogModule, PR_LOG_ALWAYS, ("%d servers", numServers)); nsCOMPtr folderToPurge; PRInt32 purgeIntervalToUse; - PRInt64 oldestPurgeTime = 0; // we're going to pick the least-recently purged folder + nsTime oldestPurgeTime = 0; // we're going to pick the least-recently purged folder for (PRUint32 serverIndex=0; serverIndex < numServers; serverIndex++) { nsCOMPtr server = @@ -295,7 +295,7 @@ nsresult nsMsgPurgeService::PerformPurge() spamSettings->GetPurgeInterval(&purgeInterval); PR_LOG(MsgPurgeLogModule, PR_LOG_ALWAYS, ("[%d] purging! searching for messages older than %d days", serverIndex, purgeInterval)); - if (!oldestPurgeTime || LL_CMP(oldestPurgeTime, >, lastPurgeTime)) + if ((oldestPurgeTime == nsInt64(0)) || (oldestPurgeTime > lastPurgeTime)) { oldestPurgeTime = lastPurgeTime; purgeIntervalToUse = purgeInterval;