summaryrefslogtreecommitdiff
path: root/zen/stl_tools.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/stl_tools.h')
-rw-r--r--zen/stl_tools.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/stl_tools.h b/zen/stl_tools.h
index 5fd29b6b..7d071413 100644
--- a/zen/stl_tools.h
+++ b/zen/stl_tools.h
@@ -270,7 +270,7 @@ Num hashArray(ByteIterator first, ByteIterator last)
static_assert(IsInteger<ValType>::value || std::is_same_v<ValType, char> || std::is_same_v<ValType, wchar_t>);
FNV1aHash<Num> hash;
- std::for_each(first, last, [&hash](ValType v) { hash.add(static_cast<Num>(v)); });
+ std::for_each(first, last, [&hash](ValType v) { hash.add(v); });
return hash.get();
}
bgstack15