Bug 1614846 follow-up - Use size_t instead of uint32_t to un-break Windows 64-bit builds. rs=bustage-fix
authorGeoff Lankow <geoff@darktrojan.net>
Wed, 01 Apr 2020 20:16:01 +1300
changeset 38653 03cfd777e6359f5628d750985da7c4c5d5c45935
parent 38652 16ca51abc6dda000296c7d7d082b9951ca04fd6d
child 38654 d9c8e04388ebab7b11181938c188e873d360efc3
push id400
push userclokep@gmail.com
push dateMon, 04 May 2020 18:56:09 +0000
reviewersbustage-fix
bugs1614846
Bug 1614846 follow-up - Use size_t instead of uint32_t to un-break Windows 64-bit builds. rs=bustage-fix
mailnews/imap/src/nsImapOfflineSync.cpp
--- a/mailnews/imap/src/nsImapOfflineSync.cpp
+++ b/mailnews/imap/src/nsImapOfflineSync.cpp
@@ -118,17 +118,17 @@ bool nsImapOfflineSync::AdvanceToNextSer
         do_GetService(NS_MSGACCOUNTMANAGER_CONTRACTID, &rv);
     NS_ASSERTION(accountManager && NS_SUCCEEDED(rv),
                  "couldn't get account mgr");
     if (!accountManager || NS_FAILED(rv)) return false;
 
     rv = accountManager->GetAllServers(m_allServers);
     NS_ENSURE_SUCCESS(rv, false);
   }
-  uint32_t serverIndex = 0;
+  size_t serverIndex = 0;
   if (m_currentServer) {
     serverIndex = m_allServers.IndexOf(m_currentServer);
     if (serverIndex == m_allServers.NoIndex) {
       serverIndex = 0;
     } else {
       // Move to the next server
       ++serverIndex;
     }