diff --git a/Core/Code/Common/mitkException.cpp b/Core/Code/Common/mitkException.cpp index f374adcd9c..f5495e5d5d 100644 --- a/Core/Code/Common/mitkException.cpp +++ b/Core/Code/Common/mitkException.cpp @@ -1,43 +1,43 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #include "mitkException.h" void mitk::Exception::AddRethrowData(const char *file, unsigned int lineNumber, const char *message) { mitk::Exception::ReThrowData data = {file, lineNumber, message}; this->m_RethrowData.push_back(data); } int mitk::Exception::GetNumberOfRethrows() { return (int)m_RethrowData.size(); } void mitk::Exception::GetRethrowData(int rethrowNumber, std::string &file, int &line, std::string &message) { - if ((rethrowNumber >= m_RethrowData.size()) || (rethrowNumber<0)) + if ((rethrowNumber >= (int)m_RethrowData.size()) || (rethrowNumber<0)) { file = ""; line = 0; message = ""; return; } file = m_RethrowData.at(rethrowNumber).RethrowClassname; line = m_RethrowData.at(rethrowNumber).RethrowLine; message = m_RethrowData.at(rethrowNumber).RethrowMessage; }