Browse Source

fixing warning: comparing signed with unsigned int

tempestpy_adaptions
gereon 12 years ago
parent
commit
82df4ba274
  1. 2
      src/mrmc.cpp

2
src/mrmc.cpp

@ -134,7 +134,7 @@ int main(const int argc, const char* argv[]) {
LOG4CPLUS_ERROR(logger, "Warning: Eigen and GMM produced different results (Eigen: " << eigenResult->size() << ", Gmm: " << gmmResult->size() << ") in size!"); LOG4CPLUS_ERROR(logger, "Warning: Eigen and GMM produced different results (Eigen: " << eigenResult->size() << ", Gmm: " << gmmResult->size() << ") in size!");
} else { } else {
LOG4CPLUS_INFO(logger, "Testing for different entries"); LOG4CPLUS_INFO(logger, "Testing for different entries");
for (int i = 0; i < eigenResult->size(); ++i) {
for (unsigned int i = 0; i < eigenResult->size(); ++i) {
if (std::abs((eigenResult->at(i) - gmmResult->at(i))) > 0) { if (std::abs((eigenResult->at(i) - gmmResult->at(i))) > 0) {
LOG4CPLUS_ERROR(logger, "Warning: Eigen and GMM produced different results in entry " << i << " (Eigen: " << eigenResult->at(i) << ", Gmm: " << gmmResult->at(i) << ")!"); LOG4CPLUS_ERROR(logger, "Warning: Eigen and GMM produced different results in entry " << i << " (Eigen: " << eigenResult->at(i) << ", Gmm: " << gmmResult->at(i) << ")!");
} }

Loading…
Cancel
Save