From d6c9231c55b273f50b870ce85c5fafefd4fe3cf6 Mon Sep 17 00:00:00 2001 From: skachano Date: Mon, 10 Oct 2016 15:20:40 +0000 Subject: Fixed the numerical_limits::max + 1 bug git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/relaxed-witness@1685 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 31f100f0a7a56a81cc920768e07ecb001e6e1b26 --- src/Witness_complex/include/gudhi/Strong_witness_complex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Witness_complex/include') diff --git a/src/Witness_complex/include/gudhi/Strong_witness_complex.h b/src/Witness_complex/include/gudhi/Strong_witness_complex.h index e64f8f20..aa313c40 100644 --- a/src/Witness_complex/include/gudhi/Strong_witness_complex.h +++ b/src/Witness_complex/include/gudhi/Strong_witness_complex.h @@ -128,7 +128,7 @@ private: template < typename SimplicialComplexForWitness > bool create_complex(SimplicialComplexForWitness& complex, FT max_alpha_square, - Landmark_id limit_dimension = std::numeric_limits::max()) + Landmark_id limit_dimension = std::numeric_limits::max()-1) { std::size_t nbL = landmarks_.size(); Landmark_id complex_dim = 0; -- cgit v1.2.3