summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ripser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ripser.cpp b/ripser.cpp
index 2f5a01a..74f9224 100644
--- a/ripser.cpp
+++ b/ripser.cpp
@@ -1079,7 +1079,7 @@ int main(int argc, char** argv) {
std::cout << "value range: [" << min << "," << max << "]"
<< std::endl;
- if (threshold == std::numeric_limits<value_t>::max())
+ if (threshold == std::numeric_limits<value_t>::infinity())
ripser<compressed_lower_distance_matrix>(std::move(dist), dim_max, threshold, modulus)
.compute_barcodes();
else