summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-11-28 19:01:05 +0100
committerHenning Baldersheim <balder@oath.com>2018-11-28 19:01:05 +0100
commit01a55c11e32198bad0f18921b1b9943735c00fcd (patch)
tree40b492b432900f4a1347a883284b1b5bc104b347 /searchlib
parentd88040df6fece52b15a5fe27a3777016069de97d (diff)
Use a simple and instead of div for modulo operation.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/enumstorebase.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/enumstorebase.h b/searchlib/src/vespa/searchlib/attribute/enumstorebase.h
index 70cb6abc0ea..6b5ba3eca56 100644
--- a/searchlib/src/vespa/searchlib/attribute/enumstorebase.h
+++ b/searchlib/src/vespa/searchlib/attribute/enumstorebase.h
@@ -166,7 +166,8 @@ public:
typedef EnumStoreIndex Index;
typedef EnumStoreIndexVector IndexVector;
typedef EnumStoreEnumVector EnumVector;
- using EnumIndexMap = vespalib::hash_map<Index, Index>;
+ using EnumIndexMap = vespalib::hash_map<Index, Index, vespalib::hash<Index>, std::equal_to<Index>,
+ vespalib::hashtable_base::and_modulator>;
class EntryBase {
protected: