summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Bauer <mail@ulrich-bauer.org>2016-09-15 20:53:13 +0200
committerUlrich Bauer <mail@ulrich-bauer.org>2016-09-15 20:53:13 +0200
commit9f81b0f020b858fe95a10d35e984e37ff6d70175 (patch)
tree8173c91ce048f7f6bd8bfe6dadc7fbd01686d0db
parent1ae58195ed01700ebe1cb0ece116be3c27a59faa (diff)
explicit word sizes for index_t and coefficient_t
-rw-r--r--ripser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ripser.cpp b/ripser.cpp
index 6241eb3..600315b 100644
--- a/ripser.cpp
+++ b/ripser.cpp
@@ -46,8 +46,8 @@ template <class Key, class T> class hash_map : public std::unordered_map<Key, T>
typedef float value_t;
// typedef uint16_t value_t;
-typedef long index_t;
-typedef short coefficient_t;
+typedef int64_t index_t;
+typedef int16_t coefficient_t;
class binomial_coeff_table {
std::vector<std::vector<index_t>> B;