Fix build bustage due to 'error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]' after bug 1018288 landing in m-c. rs=bustage-fix CLOSED TREE

This commit is contained in:
Mark Banner 2014-08-09 07:41:04 +01:00
Родитель c881e74fe3
Коммит 4b72aa6177
2 изменённых файлов: 1 добавлений и 2 удалений

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

@ -2025,7 +2025,7 @@ NS_IMETHODIMP nsMsgLocalMailFolder::BeginCopy(nsIMsgDBHdr *message)
seekableStream->Seek(nsISeekableStream::NS_SEEK_END, 0);
int32_t messageIndex = (mCopyState->m_copyingMultipleMessages) ? mCopyState->m_curCopyIndex - 1 : mCopyState->m_curCopyIndex;
NS_ASSERTION(!mCopyState->m_copyingMultipleMessages || mCopyState->m_curCopyIndex >= 0, "mCopyState->m_curCopyIndex invalid");
NS_ASSERTION(!mCopyState->m_copyingMultipleMessages || messageIndex, "messageIndex invalid");
// by the time we get here, m_curCopyIndex is 1 relative because WriteStartOfNewMessage increments it
mCopyState->m_messages->QueryElementAt(messageIndex, NS_GET_IID(nsIMsgDBHdr),
(void **)getter_AddRefs(mCopyState->m_message));

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

@ -552,7 +552,6 @@ nsPgpMimeProxy::OnDataAvailable(nsIRequest* aRequest, nsISupports* aContext,
NS_ENSURE_TRUE(mInitialized, NS_ERROR_NOT_INITIALIZED);
NS_ENSURE_ARG(aInputStream);
NS_ENSURE_ARG_MIN(aLength, 0);
char buf[kCharMax];
uint32_t readCount, readMax;