diff --git a/test/exception/insert_exception_tests.cpp b/test/exception/insert_exception_tests.cpp index 428dbb04..654072f7 100644 --- a/test/exception/insert_exception_tests.cpp +++ b/test/exception/insert_exception_tests.cpp @@ -133,7 +133,7 @@ struct insert_test_rehash1 : public insert_test_base // TODO: This doesn't really work is bucket_count is 0 size_type bucket_count = x.bucket_count(); size_type initial_elements = static_cast( - ceil(bucket_count * (double) x.max_load_factor()) - 1); + ceil((double) bucket_count * (double) x.max_load_factor()) - 1); BOOST_TEST(initial_elements < this->values.size()); x.insert(this->values.begin(), boost::next(this->values.begin(), initial_elements)); @@ -202,7 +202,7 @@ struct insert_test_rehash3 : public insert_test_base original_bucket_count = x.bucket_count(); rehash_bucket_count = static_cast( - ceil(original_bucket_count * (double) x.max_load_factor())) - 1; + ceil((double) original_bucket_count * (double) x.max_load_factor())) - 1; size_type initial_elements = rehash_bucket_count > 5 ? rehash_bucket_count - 5 : 1;