summaryrefslogtreecommitdiff
path: root/src/Witness_complex/include/gudhi/Strong_witness_complex.h
diff options
context:
space:
mode:
authorskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-10-10 15:20:40 +0000
committerskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-10-10 15:20:40 +0000
commitd6c9231c55b273f50b870ce85c5fafefd4fe3cf6 (patch)
tree41ac3cda234778383d33f8054b94b8dadac8c8e3 /src/Witness_complex/include/gudhi/Strong_witness_complex.h
parentc40e693be35b97684c102c17424205f3a6379f16 (diff)
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
Diffstat (limited to 'src/Witness_complex/include/gudhi/Strong_witness_complex.h')
-rw-r--r--src/Witness_complex/include/gudhi/Strong_witness_complex.h2
1 files changed, 1 insertions, 1 deletions
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<Landmark_id>::max())
+ Landmark_id limit_dimension = std::numeric_limits<Landmark_id>::max()-1)
{
std::size_t nbL = landmarks_.size();
Landmark_id complex_dim = 0;