diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2013-02-28 10:15:19 +0100 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2013-02-28 10:15:19 +0100 |
commit | 5882f1631db7df1a809270b4f2c0c5ae6da0130b (patch) | |
tree | c77eeba1279232f532391d7e412355a7b5901085 /test/main.h | |
parent | 5e8384df2edaf30d106503d4889bc70b62c20fd1 (diff) |
Fixed compiler warning.
Diffstat (limited to 'test/main.h')
-rw-r--r-- | test/main.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/main.h b/test/main.h index 61c3ba7cc..578284f5c 100644 --- a/test/main.h +++ b/test/main.h @@ -177,7 +177,8 @@ static void verify_impl(bool condition, const char *testname, const char *file, std::cerr << "Test " << testname << " failed in " << file << " (" << line << ")" << std::endl << " " << condition_as_string << std::endl; std::cerr << "Stack:\n"; - for(int i=Eigen::g_test_stack.size()-1; i>=0; --i) + const int test_stack_size = static_cast<int>(Eigen::g_test_stack.size()); + for(int i=test_stack_size-1; i>=0; --i) std::cerr << " - " << Eigen::g_test_stack[i] << "\n"; std::cerr << "\n"; abort(); |