From 4c9a19cc8cdd3f2309e58159b767d01ffa1c905d Mon Sep 17 00:00:00 2001 From: Yury Melnichek Date: Sat, 26 Mar 2011 13:53:39 +0100 Subject: [PATCH] Fix bug in math_test.cpp --- base/base_tests/math_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/base_tests/math_test.cpp b/base/base_tests/math_test.cpp index b3e2b7c8de..6a25fbf8c1 100644 --- a/base/base_tests/math_test.cpp +++ b/base/base_tests/math_test.cpp @@ -78,7 +78,7 @@ template void TestMaxULPs() { for (unsigned int logMaxULPs = 0; logMaxULPs <= 8; ++logMaxULPs) { - unsigned int const maxULPs = (logMaxULPs == 0 ? 0 : (1 << logMaxULPs - 1)); + unsigned int const maxULPs = (logMaxULPs == 0 ? 0 : ((1 << logMaxULPs) - 1)); for (int base = -1; base <= 1; ++base) { for (int dir = -1; dir <= 1; dir += 2)