From 82df4ba274b877957f68d737d781ff75125adc13 Mon Sep 17 00:00:00 2001 From: gereon Date: Sun, 9 Dec 2012 14:05:40 +0100 Subject: [PATCH] fixing warning: comparing signed with unsigned int --- src/mrmc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mrmc.cpp b/src/mrmc.cpp index 91e07b24d..ec9ea7832 100644 --- a/src/mrmc.cpp +++ b/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!"); } else { 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) { LOG4CPLUS_ERROR(logger, "Warning: Eigen and GMM produced different results in entry " << i << " (Eigen: " << eigenResult->at(i) << ", Gmm: " << gmmResult->at(i) << ")!"); }