summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Bauer <mail@ulrich-bauer.org>2019-07-02 11:06:16 +0200
committerUlrich Bauer <mail@ulrich-bauer.org>2019-07-02 11:06:16 +0200
commit4e2129b11a4dc491f218bc9840d1f19eb898a391 (patch)
tree2a0359117ba8b2c65453fb4741f02e1d538ebf19
parentd9ff05f213a63add6d7cb43f69e63b6d84905177 (diff)
fixed google hash map support
-rw-r--r--ripser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ripser.cpp b/ripser.cpp
index 65d84d7..55e94b5 100644
--- a/ripser.cpp
+++ b/ripser.cpp
@@ -108,6 +108,7 @@ struct __attribute__((packed)) entry_t {
coefficient_t coefficient;
entry_t(index_t _index, coefficient_t _coefficient)
: index(_index), coefficient(_coefficient) {}
+ entry_t(index_t _index) : index(_index), coefficient(0) {}
entry_t() : index(0), coefficient(0) {}
};